:root {
  --charcoal: #292724;
  --warm: #8d6b51;
  --warm-light: #a88972;
  --pale: #f6f2ed;
  --cream: #fcfaf7;
  --border: rgba(41, 39, 36, 0.08);
  --text-soft: rgba(41, 39, 36, 0.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { width: min(1400px, calc(100% - 64px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.eyebrow.accent { color: var(--warm-light); }
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 500; margin: 0; }
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brandmark {
  font-size: 32px;
  letter-spacing: 0.3em;
  font-weight: 300;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: rgba(41, 39, 36, 0.72);
}
.header-social { display: flex; gap: 18px; font-size: 13px; color: rgba(41, 39, 36, 0.7); }
.nav-toggle { display: none; }

.hero-section { position: relative; min-height: 480px; display: flex; align-items: center; margin-top: 0; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: rgba(0, 0, 0, 0.35); }
.hero-content { position: relative; z-index: 1; color: #fff; text-align: center; }
.hero-content h1 { font-size: clamp(42px, 6vw, 64px); line-height: 1.05; }

.process-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.process-items {
  min-height: 108px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}
.process-items::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(141, 107, 81, 0), rgba(141, 107, 81, 0.16), rgba(141, 107, 81, 0));
}
.process-item { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; }
.process-item span { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; color: rgba(41, 39, 36, 0.62); }
.process-item i { display: block; width: 56px; height: 1px; background: rgba(41, 39, 36, 0.1); }

.sector-section, .portfolio-section, .about-section, .contact-section, .catalog-section { padding: 96px 0; }
.sector-section { background: #fff; }
.section-intro, .portfolio-header, .about-grid, .contact-grid, .catalog-layout {
  display: grid;
  gap: 32px;
}
.section-intro { grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr); margin-bottom: 56px; align-items: end; }
.section-intro h2, .portfolio-header h2, .about-grid h2, .contact-grid h2, .catalog-header h1 { font-size: clamp(34px, 4vw, 44px); line-height: 1.08; }
.section-intro p:last-child, .portfolio-header p, .catalog-header p, .about-lead, .contact-item p { font-size: 18px; line-height: 1.7; color: var(--text-soft); }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sector-card {
  background: var(--pale);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.sector-card:hover { transform: translateY(-4px); background: #fff; border-color: rgba(141, 107, 81, 0.25); box-shadow: 0 16px 28px rgba(41, 39, 36, 0.06); }
.sector-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 28px; }
.sector-number {
  width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(141, 107, 81, 0.2); color: var(--warm); font-size: 14px;
}
.sector-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(41, 39, 36, 0.35); }
.sector-card h3 { font-size: 30px; margin-bottom: 12px; }
.sector-card p { color: var(--text-soft); line-height: 1.7; }

.portfolio-section, .contact-section, .catalog-header { background: var(--pale); }
.portfolio-header { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); margin-bottom: 48px; align-items: end; }
.stats-card {
  background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 24px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.stats-card strong { display: block; font-family: 'Playfair Display', serif; font-size: 40px; margin-bottom: 4px; }
.stats-card span { color: rgba(41, 39, 36, 0.55); font-size: 14px; }
.stats-card a { grid-column: 1 / -1; color: var(--warm); font-weight: 500; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: 24px; }
.portfolio-grid > div { overflow: hidden; border-radius: 28px; background: #fff; }
.portfolio-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.portfolio-grid > div:hover img { transform: scale(1.03); }
.portfolio-large { grid-column: span 2; grid-row: span 2; min-height: 640px; }

.about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: start; }
.about-lead { margin: 24px 0 32px; }
.about-highlight { background: var(--pale); border-radius: 28px; padding: 32px; margin-bottom: 40px; }
.about-highlight .eyebrow { color: rgba(41, 39, 36, 0.45); }
.about-highlight p:last-child { color: rgba(41, 39, 36, 0.7); }
.about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.about-columns h3 { font-size: 28px; margin-bottom: 20px; }
.about-columns ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.about-columns li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
  color: rgba(41, 39, 36, 0.68);
}
.about-columns li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--warm);
}
.about-panel {
  background: var(--charcoal);
  color: #fff;
  border-radius: 32px;
  padding: 40px;
}
.about-panel h3 { font-size: clamp(32px, 3.5vw, 40px); line-height: 1.16; margin-bottom: 24px; }
.about-panel p { color: rgba(255, 255, 255, 0.72); line-height: 1.75; }
.certification-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.certification-list span { border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 10px 16px; font-size: 12px; color: rgba(255,255,255,0.8); }
.panel-note { margin-top: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.45); }

.contact-grid { grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); align-items: start; }
.contact-item { margin-bottom: 40px; }
.contact-item h3 { font-size: 28px; margin-bottom: 12px; }
.contact-item a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 4px; }
.contact-card { background: #fff; border-radius: 28px; padding: 40px; box-shadow: 0 10px 25px rgba(41, 39, 36, 0.04); }
.contact-form { display: grid; gap: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form textarea, .catalog-mobile-filter select {
  width: 100%;
  border: 1px solid rgba(41, 39, 36, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}
.contact-form button, .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 39, 36, 0.12);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  color: rgba(41, 39, 36, 0.7);
}
.form-note { font-size: 13px; color: rgba(41, 39, 36, 0.5); }

.catalog-header { padding: 72px 0 48px; }
.catalog-header-content { max-width: 760px; }
.catalog-header-content p { margin: 0 0 28px; }
.catalog-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 64px; }
.catalog-sidebar-inner { position: sticky; top: 120px; }
.catalog-sidebar h2 { font-size: 22px; margin-bottom: 24px; }
.catalog-filter {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(41, 39, 36, 0.72);
  cursor: pointer;
}
.catalog-filter.is-active { color: var(--warm); font-weight: 600; }
.catalog-group { margin: 0 0 24px; }
.catalog-group h3 { font-family: 'Inter', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(41, 39, 36, 0.5); margin-bottom: 12px; }
.catalog-help { margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.catalog-help h3 { font-size: 18px; margin-bottom: 8px; }
.catalog-help p { color: rgba(41, 39, 36, 0.52); font-size: 12px; line-height: 1.65; margin-bottom: 14px; }
.catalog-help a { color: var(--warm); font-size: 14px; font-weight: 500; }
.catalog-mobile-filter { display: none; margin-bottom: 24px; }
.catalog-count { font-size: 14px; color: rgba(41, 39, 36, 0.4); margin-bottom: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  background: #fff;
  border: 1px solid rgba(41, 39, 36, 0.05);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover { border-color: rgba(141, 107, 81, 0.2); box-shadow: 0 16px 32px rgba(141, 107, 81, 0.08); transform: translateY(-2px); }
.product-image-button {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  border: 0;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}
.product-image-button img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.14); transition: transform 0.45s ease; }
.product-card:hover .product-image-button img { transform: scale(1.16); }
.product-image-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  box-shadow: 0 6px 18px rgba(41, 39, 36, 0.08);
}
.product-card-content { padding: 24px; }
.product-series { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--warm-light); margin-bottom: 10px; }
.product-card h3 { font-size: 24px; margin-bottom: 16px; }
.product-meta { margin-bottom: 14px; }
.product-meta .label { font-family: 'Inter', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(41, 39, 36, 0.5); margin-bottom: 6px; }
.product-meta p { color: rgba(41, 39, 36, 0.78); font-size: 14px; line-height: 1.65; }
.dimension-pills, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dimension-pills span, .tag-list span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.5;
}
.dimension-pills span { border: 1px solid rgba(41, 39, 36, 0.08); background: var(--pale); color: rgba(41, 39, 36, 0.68); }
.tag-list span { background: var(--pale); color: rgba(41, 39, 36, 0.6); }
.product-description { font-size: 14px; line-height: 1.7; color: rgba(41, 39, 36, 0.7); margin-bottom: 18px; }
.product-actions { display: flex; gap: 12px; margin-top: 18px; }
.product-actions .button-primary { flex: 1; }

.product-modal[hidden] { display: none; }
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 39, 36, 0.84);
  backdrop-filter: blur(6px);
}
.product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
}
.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  cursor: pointer;
}
.product-modal-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr); }
.product-modal-image-wrap { background: #f8f7f3; display: flex; align-items: center; justify-content: center; padding: 32px; }
.product-modal-image-wrap img { max-height: 72vh; width: 100%; object-fit: contain; }
.product-modal-content { padding: 32px; }
.dimension-stack { display: grid; gap: 8px; }
.dimension-stack div {
  background: var(--pale);
  border: 1px solid rgba(41, 39, 36, 0.08);
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 14px;
  color: rgba(41, 39, 36, 0.7);
}
.modal-open { overflow: hidden; }

.site-footer {
  background: var(--charcoal);
  color: #fff;
  padding: 56px 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding-bottom: 40px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top h2 { font-size: 38px; }
.footer-links, .footer-meta { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,0.68); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,0.5); font-size: 14px; }

.generic-section { padding: 96px 0; }
.entry-card { max-width: 900px; margin: 0 auto; }
.entry-card h1 { font-size: 42px; margin-bottom: 24px; }
.entry-content { color: var(--text-soft); line-height: 1.8; }

@media (max-width: 1100px) {
  .site-shell { width: min(100%, calc(100% - 40px)); }
  .main-nav { gap: 20px; }
  .sector-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .portfolio-large { grid-column: span 2; min-height: 420px; }
  .catalog-layout, .about-grid, .portfolio-header, .section-intro, .contact-grid, .product-modal-grid, .about-columns {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar { display: none; }
  .catalog-mobile-filter { display: block; }
}

@media (max-width: 800px) {
  .header-inner { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; justify-self: end; border: 0; background: transparent; font: inherit; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    flex-direction: column;
    padding-bottom: 20px;
  }
  .main-nav.is-open { display: flex; }
  .header-social { display: none; }
  .process-items { min-height: auto; padding: 22px 0; }
  .process-item i { width: 28px; }
  .sector-grid, .product-grid, .form-row { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: start; }
  .product-actions { flex-direction: column; }
  .contact-card, .about-panel, .about-highlight, .sector-card, .stats-card, .catalog-help { padding: 24px; }
}

