/* DSSD - Wholesaler of Server & Enterprise IT Hardware
   Pure HTML/CSS/JS. No frameworks. */

:root {
  --primary: #1e7bb4;
  --primary-dark: #155e8a;
  --accent: #f39c12;
  --ink: #1f2937;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --max-width: 1160px;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 42px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.82) 0%, rgba(17,24,39,0.45) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 760px;
}
.hero p {
  font-size: 18px;
  max-width: 620px;
  margin: 0 0 30px;
  opacity: 0.92;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 14px;
}
.btn-outline:hover { background: var(--white); color: var(--ink); text-decoration: none; }

/* Sections */
.section { padding: 72px 0; }
.section-title {
  text-align: center;
  margin-bottom: 46px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}
.section-title span {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title p {
  color: var(--gray-500);
  max-width: 680px;
  margin: 14px auto 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.card:hover { transform: translateY(-4px); }
.card-img { height: 220px; display: flex; align-items: center; justify-content: center; background: var(--gray-50); overflow: hidden; }
.card-img img { max-height: 85%; max-width: 85%; object-fit: contain; }
.card-body { padding: 22px; }
.card-body h3 { margin: 0 0 10px; font-size: 20px; }
.card-body p { margin: 0; color: var(--gray-500); font-size: 14px; }
.card-body a { font-weight: 700; font-size: 14px; position: static; }
.card-body a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: 30px; margin: 0 0 18px; }
.split p { color: var(--gray-700); margin: 0 0 16px; }

/* About lead: small clear photo top-left, text on the right */
.about-lead {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 34px;
}
.about-lead img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--gray-100);
}
.about-lead h1 { margin: 0 0 14px; }
.about-block p { color: var(--gray-700); }

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-card p {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
}
@media (max-width: 768px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 30px;
}
.feature {
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.feature h4 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; font-size: 14px; color: var(--gray-500); }
.feature .card-img { margin: -24px -24px 16px; height: 180px; background: var(--gray-100); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.feature .card-img img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
  padding: 50px 0;
}
.product-gallery {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.product-gallery img { max-height: 360px; object-fit: contain; }
.product-info h1 { font-size: 34px; margin: 0 0 14px; }
.product-info .lead { color: var(--gray-500); font-size: 17px; margin-bottom: 22px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}
.spec-table th { width: 38%; background: var(--gray-50); color: var(--gray-700); font-weight: 600; }

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}
.contact-form { background: var(--gray-50); padding: 32px; border-radius: var(--radius); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.form-notice-ok { background: #d1fae5; color: #065f46; }
.form-notice-err { background: #fee2e2; color: #991b1b; }
.contact-detail { margin-bottom: 18px; }
.contact-detail .label { display: block; font-weight: 700; font-size: 13px; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.contact-detail .value { color: var(--gray-700); }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-700); }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #d1d5db;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-col h4 { color: var(--white); margin: 0 0 16px; font-size: 16px; }
.footer-col p, .footer-col a { color: #9ca3af; font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

/* Mobile */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }
  .mobile-toggle { display: block; }
  .hero { min-height: 460px; }
  .split, .product-detail, .contact-grid, .about-lead { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}
