:root {
  --ink: #17201b;
  --muted: #5c6861;
  --line: #d9dfd6;
  --paper: #f7f6f0;
  --panel: #ffffff;
  --green: #315f45;
  --green-dark: #1f4030;
  --copper: #b7623c;
  --steel: #637a86;
  --gold: #d5a84d;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 246, 240, 0.94);
  border-bottom: 1px solid rgba(23, 32, 27, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  border-radius: 8px;
}

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

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

nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 30px);
  color: var(--muted);
  font-size: 15px;
}

nav a:hover {
  color: var(--green);
}

.header-action,
.button,
.quote-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.header-action,
.button.primary,
.quote-form button {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  max-height: 860px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 20, 0.84), rgba(16, 24, 20, 0.5) 42%, rgba(16, 24, 20, 0.1)),
    linear-gradient(0deg, rgba(16, 24, 20, 0.2), rgba(16, 24, 20, 0));
}

.hero-content {
  position: relative;
  align-self: center;
  width: min(680px, 92vw);
  padding: 72px clamp(22px, 5vw, 72px);
  color: #fff;
}

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

.hero .eyebrow {
  color: #f1bd70;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

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

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.quick-stats div {
  display: grid;
  gap: 6px;
  padding: 28px clamp(16px, 3vw, 40px);
  background: #fff;
}

.quick-stats strong {
  font-size: 32px;
  color: var(--green);
}

.quick-stats span {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.company-copy h2,
.contact-section h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.company-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.product-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 27, 0.06);
}

.product-visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e4e8df;
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  content: "";
}

.window-visual {
  background: linear-gradient(135deg, #dfe9e5, #f8faf7);
}

.window-visual::before {
  inset: 36px 78px;
  border: 12px solid #f8f9f4;
  background:
    linear-gradient(90deg, transparent 47%, #f8f9f4 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #f8f9f4 47% 53%, transparent 53%),
    linear-gradient(135deg, #b8d3dc, #edf7f7);
  box-shadow: 0 14px 24px rgba(23, 32, 27, 0.12);
}

.door-visual {
  background: linear-gradient(135deg, #cfd7d4, #ebe3d4);
}

.door-visual::before {
  inset: 28px 98px 0;
  background:
    radial-gradient(circle at 86% 50%, var(--gold) 0 5px, transparent 6px),
    linear-gradient(#3b4e45, #23342d);
  border: 10px solid #101713;
}

.vent-visual {
  background: linear-gradient(135deg, #edf0e8, #ccd8d8);
}

.vent-visual::before {
  width: 170px;
  height: 118px;
  left: 50%;
  top: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, #eef2ee 14px 22px),
    #405d65;
  border: 12px solid #314850;
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
  transform: translate(-50%, -45%);
  box-shadow: 0 18px 30px rgba(23, 32, 27, 0.14);
}

.hardware-visual {
  background: linear-gradient(135deg, #e7e7df, #c7d1c9);
}

.hardware-visual::before {
  width: 164px;
  height: 94px;
  left: 50%;
  top: 52%;
  border: 14px solid #252927;
  border-radius: 6px;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.hardware-visual::after {
  width: 38px;
  height: 38px;
  left: calc(50% + 18px);
  top: 50%;
  border: 12px solid var(--copper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.shutter-visual {
  background: linear-gradient(135deg, #eee9df, #d9ded5);
}

.shutter-visual::before,
.shutter-visual::after {
  top: 32px;
  width: 74px;
  height: 126px;
  background:
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(255, 255, 255, 0.42) 15px 20px),
    var(--green);
  border: 8px solid var(--green-dark);
}

.shutter-visual::before {
  left: calc(50% - 92px);
}

.shutter-visual::after {
  right: calc(50% - 92px);
}

.trim-visual {
  background: linear-gradient(135deg, #e5e2d5, #e7ece9);
}

.trim-visual::before {
  inset: 48px 74px;
  border: 18px solid #fff;
  outline: 10px solid var(--steel);
  box-shadow: 0 15px 26px rgba(23, 32, 27, 0.12);
}

.product-body {
  padding: 24px;
}

.product-body h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.product-body p {
  color: var(--muted);
  line-height: 1.7;
}

.product-body ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: #334039;
  list-style: none;
}

.product-body li {
  position: relative;
  padding-left: 18px;
}

.product-body li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--copper);
  border-radius: 50%;
  content: "";
}

.product-details-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.product-details-link:hover {
  background: var(--green-dark);
}

.specs-section {
  background: #fff;
}

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

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

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

th {
  color: #fff;
  background: var(--green-dark);
  font-size: 14px;
}

td {
  color: #35433c;
  line-height: 1.55;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.company-copy {
  max-width: 820px;
}

.company-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.company-points div,
.process-panel,
.application-grid article,
.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-points div {
  padding: 22px;
}

.company-points strong,
.company-points span {
  display: block;
}

.company-points strong {
  margin-bottom: 8px;
  color: var(--green);
}

.company-points span {
  color: var(--muted);
  line-height: 1.65;
}

.process-panel {
  padding: 30px;
  box-shadow: var(--shadow);
}

.process-panel h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.process-panel ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.company-story-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 24px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.company-story-link:hover {
  background: var(--green-dark);
}

.applications {
  background: #e9ece5;
}

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

.application-grid article {
  padding: 28px;
}

.application-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--copper);
  font-weight: 800;
}

.application-grid h3 {
  font-size: 24px;
}

.application-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: var(--green-dark);
  color: #fff;
}

.contact-section .eyebrow {
  color: #f0bc71;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: #334039;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f9faf7;
  border: 1px solid #ccd4cb;
  border-radius: 6px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button {
  width: 100%;
  min-height: 50px;
  font: inherit;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--green);
  font-weight: 700;
}

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

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 720px;
  }

  .quick-stats,
  .category-grid,
  .company-points,
  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    width: 100%;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(16, 24, 20, 0.86), rgba(16, 24, 20, 0.42));
  }

  .hero-content {
    align-self: end;
    padding: 48px 22px 64px;
  }

  h1 {
    font-size: 42px;
  }

  .quick-stats,
  .category-grid,
  .company-points,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    height: 160px;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  footer {
    flex-direction: column;
  }
}
