/* ============================================
   BESIGN CO. / HOUSE OF VALUES
   Pure CSS — no frameworks
   ============================================ */

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

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --grey:    #888888;
  --light:   #cccccc;
  --teal:    #3dbfb8;
  --teal-dk: #2a9e97;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
}

.nav-logo-text .sub {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--grey);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/top/bc-top-01.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transform: scale(1.1);
  will-change: transform;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--white);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-title span {
  display: block;
  font-weight: 300;
  font-size: 0.45em;
  letter-spacing: 0.35em;
  color: var(--grey);
  margin-top: 16px;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--teal);
  margin: 32px auto;
  opacity: 0;
  animation: fadeIn 0.6s 0.9s forwards;
}

.hero-sub {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--grey);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.6s 1.1s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--grey);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: scrollPulse 2s 2s infinite;
}

/* ============================================
   SECTIONS — COMMON
   ============================================ */
section {
  padding: 120px 48px;
}

.section-label {
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.section-title em {
  font-style: normal;
  color: var(--grey);
  font-weight: 300;
}

/* ============================================
   CONCEPT
   ============================================ */
#concept {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.concept-text p {
  color: var(--light);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.9;
}

.concept-image {
  position: relative;
}

.concept-image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(20%);
}

.concept-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(61, 191, 184, 0.3);
  z-index: -1;
}

/* ============================================
   ZACK
   ============================================ */
#zack {
  background: #111;
  padding: 120px 48px;
}

.zack-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.zack-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.zack-logo-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.zack-note {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.1em;
  max-width: 320px;
  text-align: right;
  line-height: 1.8;
}

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

.product-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-item.visible:hover {
  transform: translateY(0) scale(1.04);
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: grayscale(15%);
}

.product-item.visible:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-item.visible:hover .product-overlay {
  opacity: 1;
}

.product-overlay span {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
}

/* ============================================
   VALUES
   ============================================ */
#values {
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.value-item {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.value-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.value-number {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin-bottom: 16px;
}

.value-item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.value-item p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.8;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transform: scale(0.82);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 82vw;
  max-height: 82vh;
}

.lightbox.active .lightbox-frame {
  transform: scale(1);
}

.lightbox-frame img {
  display: block;
  max-width: 82vw;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  letter-spacing: 0.1em;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: relative;
  z-index: 2;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  width: 52px;
  height: 52px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo img {
  width: 52px;
  height: 52px;
  opacity: 0.8;
}

.footer-logo-text .brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.footer-logo-text .sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--grey);
}

.footer-right {
  text-align: right;
}

.footer-hovs {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.15em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.required {
  color: var(--teal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  display: inline-block;
  padding: 16px 64px;
  background: transparent;
  border: 1px solid rgba(61,191,184,0.6);
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, color 0.3s;
}

.form-submit:hover {
  background: var(--teal);
  color: #000;
}

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

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 180px 48px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero .section-label {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(24px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--grey);
  font-weight: 300;
}

/* ============================================
   COMPANY PAGE
   ============================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.company-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.company-table th {
  text-align: left;
  padding: 24px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--teal);
  font-weight: 400;
  width: 200px;
  vertical-align: top;
}

.company-table td {
  padding: 24px 0;
  font-size: 15px;
  color: var(--light);
  line-height: 1.8;
}

.client-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-category {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.client-cat-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  padding-top: 6px;
  white-space: nowrap;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-lead {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--light);
  max-width: 800px;
  margin-bottom: 80px;
}

.about-body {
  max-width: 720px;
}

.about-body p {
  font-size: 16px;
  line-height: 2;
  color: var(--light);
  margin-bottom: 28px;
}

.about-body h3 {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--teal);
  margin: 56px 0 20px;
  text-transform: uppercase;
}

.about-quote {
  border-left: 2px solid var(--teal);
  padding-left: 28px;
  margin: 48px 0;
  font-size: 18px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.8;
  font-style: italic;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-date {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--teal);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: var(--teal);
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  #concept { grid-template-columns: 1fr; gap: 48px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .zack-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .zack-note { text-align: left; }
  footer { flex-direction: column; gap: 32px; text-align: center; }
  .footer-right { text-align: center; }
}
