/* Zoher Khoja — design tokens + prototype styles
   Direction: ink navy trade house + copper accent. No purple/cream AI defaults. */

:root {
  --ink: #08131f;
  --ink-2: #0f2133;
  --ink-3: #173047;
  --sea: #1a5c61;
  --sea-bright: #248088;
  --copper: #c47a42;
  --copper-soft: #e0a06a;
  --mist: #d7e2eb;
  --paper: #eef3f7;
  --paper-2: #f7fafc;
  --muted: #5d7184;
  --line: rgba(8, 19, 31, 0.12);
  --line-strong: rgba(8, 19, 31, 0.22);
  --glow: rgba(36, 128, 136, 0.28);
  --shadow: 0 18px 50px rgba(8, 19, 31, 0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Atmosphere ---------- */

.atmosphere {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper-2);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(36, 128, 136, 0.35), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(196, 122, 66, 0.22), transparent 50%),
    linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 48%, #0b2a36 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(238, 243, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 247, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 35%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(196, 122, 66, 0.18), transparent 70%);
  animation: drift 14s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rise {
  animation: rise 0.9s var(--ease) both;
}

.rise-delay-1 { animation-delay: 0.12s; }
.rise-delay-2 { animation-delay: 0.24s; }
.rise-delay-3 { animation-delay: 0.36s; }

/* ---------- Shell ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(8, 19, 31, 0.72);
  border-bottom: 1px solid rgba(238, 243, 247, 0.08);
  color: var(--paper-2);
}

.site-nav--light {
  background: rgba(238, 243, 247, 0.86);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.brand-mark__meta {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 600;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* ---------- Home hub ---------- */

.hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-hero {
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  min-height: calc(100vh - var(--nav-h));
}

.hub-hero__intro {
  max-width: 40rem;
}

.hub-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hub-hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 32rem;
  color: rgba(238, 243, 247, 0.82);
  margin-bottom: 1.5rem;
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--copper {
  background: linear-gradient(135deg, var(--copper), #a86232);
  color: #fff8f1;
  box-shadow: 0 10px 28px rgba(196, 122, 66, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(238, 243, 247, 0.28);
  color: var(--paper-2);
}

.btn--ghost:hover {
  border-color: rgba(238, 243, 247, 0.55);
  background: rgba(238, 243, 247, 0.06);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper-2);
}

.btn--sea {
  background: var(--sea);
  color: #f2fbfb;
}

.btn--outline-ink {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 820px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
}

.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 15.5rem;
  padding: 1.4rem 1.4rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(238, 243, 247, 0.12);
  background:
    linear-gradient(160deg, rgba(238, 243, 247, 0.08), rgba(238, 243, 247, 0.02)),
    rgba(15, 33, 51, 0.55);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.biz-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 80%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: 0.7;
  transition: transform 0.6s var(--ease);
}

.biz-card--industrial::before {
  background: radial-gradient(closest-side, rgba(196, 122, 66, 0.28), transparent 72%);
}

.biz-card:hover {
  transform: translateY(-6px);
  border-color: rgba(238, 243, 247, 0.28);
  box-shadow: var(--shadow);
}

.biz-card:hover::before {
  transform: translate(-8%, -6%) scale(1.15);
}

.biz-card__eyebrow {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin-bottom: 0.65rem;
}

.biz-card__title {
  position: relative;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin-bottom: 0.55rem;
}

.biz-card__copy {
  position: relative;
  color: rgba(238, 243, 247, 0.74);
  font-size: 0.95rem;
  max-width: 28rem;
}

.biz-card__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.biz-card__status {
  opacity: 0.7;
}

.biz-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--copper-soft);
}

.biz-card__action svg {
  transition: transform 0.3s var(--ease);
}

.biz-card:hover .biz-card__action svg {
  transform: translateX(4px);
}

.hub-foot {
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  font-size: 0.8rem;
  color: rgba(238, 243, 247, 0.45);
}

/* ---------- Export app shell ---------- */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(26, 92, 97, 0.12), transparent 55%),
    var(--paper);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-top__cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.back-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.back-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.app-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-title__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.app-title__sub {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-main {
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 6.5rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.app-panel {
  animation: fade-in 0.35s ease both;
}

.app-panel[hidden] {
  display: none !important;
}

.app-nav {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  width: min(560px, calc(100% - 1.5rem));
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(8, 19, 31, 0.92);
  border: 1px solid rgba(238, 243, 247, 0.08);
  box-shadow: var(--shadow);
}

.app-nav__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(238, 243, 247, 0.62);
  border-radius: 999px;
  padding: 0.7rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
}

.app-nav__btn.is-active {
  background: rgba(196, 122, 66, 0.95);
  color: #fff8f1;
}

.app-nav__btn:hover:not(.is-active) {
  color: var(--paper-2);
  background: rgba(238, 243, 247, 0.08);
}

/* ---------- Content blocks ---------- */

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--muted);
  max-width: 38rem;
}

.prose-block {
  display: grid;
  gap: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--line);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--sea);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 0.55rem;
  color: var(--sea);
}

.faq p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Catalog */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.chip-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chip.is-active,
.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

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

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(8, 19, 31, 0.1);
  border-color: rgba(26, 92, 97, 0.28);
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(26, 92, 97, 0.16), rgba(196, 122, 66, 0.12)),
    repeating-linear-gradient(
      -32deg,
      transparent,
      transparent 8px,
      rgba(8, 19, 31, 0.03) 8px,
      rgba(8, 19, 31, 0.03) 9px
    ),
    #e3ebf1;
  display: grid;
  place-items: center;
  position: relative;
}

.product-card__media span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(8, 19, 31, 0.45);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem 1rem;
  flex: 1;
}

.product-card__brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.product-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.product-card__actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.product-card__actions .btn {
  min-height: 2.3rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  flex: 1;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 19, 31, 0.55);
  display: grid;
  place-items: end center;
  padding: 1rem;
  animation: fade-in 0.2s ease;
}

@media (min-width: 720px) {
  .modal-backdrop {
    place-items: center;
  }
}

.modal {
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: var(--paper-2);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.35rem;
  animation: rise 0.35s var(--ease);
}

.modal__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.modal__close {
  appearance: none;
  border: 1px solid var(--line);
  background: white;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
}

.modal__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background:
    linear-gradient(145deg, rgba(26, 92, 97, 0.18), rgba(196, 122, 66, 0.14)),
    #dce6ee;
  display: grid;
  place-items: center;
  color: rgba(8, 19, 31, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal dl {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 1.1rem;
}

.modal dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

/* Forms */

.form {
  display: grid;
  gap: 0.9rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper-2);
  padding: 0.7rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sea-bright);
  box-shadow: 0 0 0 3px rgba(36, 128, 136, 0.18);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.8rem;
}

.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 92, 97, 0.1);
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 600;
}

.selected-pill button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.preview-box {
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: rgba(238, 243, 247, 0.88);
  font-size: 0.82rem;
  white-space: pre-wrap;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
}

.contact-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.contact-card p,
.contact-card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.placeholder-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(196, 122, 66, 0.12);
  color: #8a4d22;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Industrial placeholder */

.coming-soon {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.coming-soon__body {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.coming-soon__body h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0.5rem 0 0.85rem;
}

.coming-soon__body p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: rgba(238, 243, 247, 0.78);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
}
