:root {
  --ink: #142033;
  --muted: #607086;
  --line: #d9e1eb;
  --surface: #ffffff;
  --soft: #eef4fb;
  --navy: #153f63;
  --teal: #0b7a75;
  --amber: #e9912c;
  --red: #c9473a;
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(248, 250, 252, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 108px;
  height: 54px;
  object-fit: contain;
  background: transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav,
.admin-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.admin-nav a {
  padding: 10px 12px;
  color: #34445b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.admin-nav a:hover,
.admin-nav a.active {
  background: var(--soft);
  color: var(--navy);
}

.admin-link {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 5vw, 72px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(21, 63, 99, 0.95), rgba(11, 122, 117, 0.88)),
    url("assets/hero-packaging.jpg") center/cover;
  color: #fff;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.hero-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: clamp(320px, 52vh, 560px);
  object-fit: cover;
}

.section {
  padding: clamp(40px, 6vw, 82px) clamp(18px, 5vw, 72px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.strip div {
  min-height: 116px;
  padding: 28px;
  background: #fff;
}

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

.strip strong {
  color: var(--teal);
  font-size: 28px;
}

.strip span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

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

.section h2,
.admin-main h1,
.panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card-content {
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: var(--navy);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.two-column,
.quality,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.two-column {
  background: #fff;
  border-block: 1px solid var(--line);
}

.two-column p,
.quality-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.industry-list span {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.quality-image {
  overflow: hidden;
  border-radius: 8px;
}

.quality-image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.quality-copy ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: #35455c;
  line-height: 1.8;
  font-weight: 700;
}

.contact-section {
  background: var(--navy);
  color: #fff;
}

.contact-copy h2 {
  margin: 0 0 20px;
}

.contact-copy address,
.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.8;
}

.quote-form,
.admin-form {
  display: grid;
  gap: 16px;
}

.quote-form {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: #34445b;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #111827;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(20, 32, 51, 0.24);
  font-size: 14px;
  font-weight: 800;
}

.whatsapp-float:hover {
  background: #1fbd5a;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  flex: 0 0 auto;
}

.admin-body {
  background: #edf2f7;
}

.locked .admin-shell {
  display: none;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(120deg, rgba(21, 63, 99, 0.9), rgba(11, 122, 117, 0.84)),
    url("assets/hero-packaging.jpg") center/cover;
}

.login-box {
  display: grid;
  width: min(100%, 420px);
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-body:not(.locked) .login-screen {
  display: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.admin-brand {
  margin-bottom: 28px;
}

.admin-nav {
  align-items: stretch;
  flex-direction: column;
  margin-bottom: 24px;
}

.sidebar-button {
  margin-top: 10px;
}

.admin-main {
  padding: clamp(20px, 4vw, 42px);
}

.admin-topbar,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-topbar h1,
.panel h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.admin-section {
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid article,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.06);
}

.metric-grid article {
  padding: 22px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 40px;
}

.panel {
  padding: 22px;
}

.admin-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 24px;
}

.admin-form .wide {
  grid-column: span 2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #34445b;
  background: #f4f7fb;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #26354b;
  font-size: 14px;
}

.admin-product-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-product-cell img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.mini-button.danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 980px) {
  .site-header,
  .site-nav,
  .section-heading,
  .admin-topbar,
  .panel-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .two-column,
  .quality,
  .contact-section,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding-left: 0;
  }

  .product-grid,
  .strip,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form .wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .strip,
  .metric-grid,
  .industry-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-media img {
    height: 280px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0 14px;
  }

  .whatsapp-float span {
    display: none;
  }
}
