@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f1e8;
  --bg-soft: #e9e1cf;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffdf8;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.2);
  --text: #142233;
  --muted: #536072;
  --deep: #10263a;
  --accent: #007b74;
  --accent-strong: #00665f;
  --warm: #d49d45;
  --shadow: 0 20px 60px rgba(16, 38, 58, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --container: min(1200px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 157, 69, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 123, 116, 0.14), transparent 30%),
    linear-gradient(180deg, #f9f5ec 0%, #f1ecdf 100%);
  min-height: 100vh;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(249, 245, 236, 0.82);
  border-bottom: 1px solid rgba(16, 38, 58, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

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

.nav-panel,
.site-nav,
.header-actions,
.lang-switch {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.lang-switch {
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 38, 58, 0.06);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 8px 20px rgba(16, 38, 58, 0.1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto 5px;
  background: var(--deep);
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--deep), #183a57);
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 14px 32px rgba(16, 38, 58, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--deep);
  box-shadow: none;
  border: 1px solid rgba(16, 38, 58, 0.12);
}

.button-ghost {
  background: transparent;
  color: var(--deep);
  box-shadow: none;
  border: 1px solid rgba(16, 38, 58, 0.18);
}

.hero-section,
.page-hero {
  padding: 72px 0 30px;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.page-hero-note,
.card.surface {
  border: 1px solid rgba(16, 38, 58, 0.08);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 116, 0.18), transparent 70%);
}

.hero-panel,
.page-hero-note,
.card.surface {
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.section-copy h2,
.card.surface h2,
.card.surface h3,
.detail-hero h1,
.empty-state h2 {
  margin: 14px 0 0;
  font-family: "Fraunces", serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  max-width: 12ch;
}

.hero-summary,
.page-summary,
.stack p,
.news-summary,
.product-summary,
.detail-paragraphs p,
.contact-summary,
.page-hero-note p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero-summary {
  max-width: 58ch;
  margin: 18px 0 0;
}

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

.metric-grid,
.facts-grid,
.card-grid,
.section-grid,
.split-grid,
.detail-layout,
.detail-section-grid,
.footer-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.metric-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.metric-card,
.fact-card,
.service-card,
.product-card,
.news-card,
.spec-card {
  border-radius: 20px;
  border: 1px solid rgba(16, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.metric-card,
.fact-card {
  padding: 18px;
}

.metric-card strong,
.fact-card strong {
  display: block;
  font-size: 1.8rem;
  font-family: "Fraunces", serif;
}

.metric-card span,
.fact-card span {
  color: var(--muted);
  line-height: 1.5;
}

.facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.panel-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(212, 157, 69, 0.16);
  color: #8a5c18;
  font-weight: 700;
}

.section {
  padding: 30px 0 26px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.5), rgba(255, 249, 239, 0.85));
}

.section-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.card.surface h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.feature-list,
.step-list,
.detail-list,
.contact-details {
  margin: 20px 0 0;
  padding: 0;
}

.feature-list,
.detail-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li,
.detail-list li,
.step-list li {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(16, 38, 58, 0.08);
  color: var(--muted);
}

.step-list {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.inline-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.news-card {
  padding: 22px;
}

.service-card h3,
.news-card h3,
.product-card h3 {
  margin: 16px 0 0;
  font-size: 1.32rem;
}

.service-card p,
.news-card p,
.product-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #eef6f5, #ddebe9);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 290px;
}

.product-topline,
.news-meta,
.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 123, 116, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.spec-snippet {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.spec-snippet div,
.spec-table .spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.spec-snippet dt,
.spec-table dt,
.contact-details dt {
  color: var(--muted);
}

.spec-snippet dd,
.spec-table dd,
.contact-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.catalog-toolbar {
  display: grid;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(16, 38, 58, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--muted);
  padding: 11px 14px;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--deep);
  color: #fff;
}

.search-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.search-field input,
.inquiry-form input,
.inquiry-form textarea {
  border: 1px solid rgba(16, 38, 58, 0.14);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
}

.search-field input:focus,
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 2px solid rgba(0, 123, 116, 0.25);
  border-color: var(--accent);
}

.catalog-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.empty-state {
  padding: 36px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  text-align: center;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: start;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 20px;
}

.detail-hero {
  padding: 0;
  overflow: hidden;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.detail-copy {
  padding: 32px;
}

.detail-copy h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.detail-summary {
  margin-top: 16px;
}

.detail-highlights {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-highlights li {
  list-style: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 123, 116, 0.08);
  color: var(--deep);
}

.detail-image {
  min-height: 360px;
  background: linear-gradient(180deg, #edf5f4, #dce8e6);
  display: grid;
  place-items: center;
  padding: 28px;
}

.spec-card,
.contact-card,
.detail-section-card {
  padding: 24px;
}

.spec-table {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-section-card h2,
.contact-card h2 {
  font-size: 1.7rem;
}

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

.detail-paragraphs {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-card {
  position: sticky;
  top: 104px;
}

.contact-card .button {
  width: 100%;
  margin-top: 18px;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 38, 58, 0.08);
}

.contact-details div:last-child {
  border-bottom: 0;
}

.contact-summary {
  margin-top: 14px;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.inquiry-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.inquiry-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-error {
  color: #b53b27;
}

.news-meta,
.detail-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.news-card a.news-link {
  margin-top: 18px;
  display: inline-flex;
  color: var(--deep);
  font-weight: 700;
}

.site-footer {
  padding: 34px 0 44px;
}

.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
  border-top: 1px solid rgba(16, 38, 58, 0.08);
  color: var(--muted);
}

.footer-grid strong,
.footer-grid span {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .section-grid,
  .split-grid,
  .detail-layout,
  .detail-section-grid,
  .detail-hero-grid,
  .three-up,
  .metric-grid.compact,
  .facts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 252, 246, 0.96);
    border: 1px solid rgba(16, 38, 58, 0.08);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .site-nav,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a,
  .header-actions .button {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .page-hero-note,
  .card.surface,
  .detail-copy,
  .detail-image,
  .contact-card {
    padding: 24px;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-section,
  .page-hero,
  .section {
    padding: 24px 0;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .inline-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .inquiry-form-grid {
    grid-template-columns: 1fr;
  }
}
