:root {
  --brand: #256580;
  --brand-light: #4a90ae;
  --cream: #fbf7f0;
  --sand: #a29885;
  --ink: #000;
  --muted: #595959;
  --font: "Space Grotesk", sans-serif;
  --font-form: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container.wide { width: min(1400px, 100% - 40px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: transparent;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(251, 247, 240, .55);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(199, 199, 199, .6);
  border-radius: 40px;
  box-shadow: 0 8px 30px rgba(37, 101, 128, .08);
  padding: 15px 34px;
}
.header-bar .logo img { height: 44px; width: auto; }
.main-nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease;
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Gradient cards ---------- */
.glow-card {
  border-radius: 35px;
  border: 1px solid #4a90ae;
  background:
    radial-gradient(circle at 94.58% 91.35%, #E8E2D6 0%, 20%, rgba(232,226,214,0) 40%),
    radial-gradient(circle at 6.5% 88.04%, rgba(37,101,128,.99) 0%, 25%, rgba(37,101,128,0) 50%),
    radial-gradient(circle at 6.17% 12.62%, #FBF7F0 0%, 42%, rgba(251,247,240,0) 70%),
    radial-gradient(circle at 93.69% 11.43%, #256580 0%, 42%, rgba(37,101,128,0) 70%),
    var(--cream);
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 30px 0 60px; }
.hero .glow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 460px;
  padding: 60px 80px;
}
.hero h1 {
  font-size: 55px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--brand);
  max-width: 720px;
}
.hero .hero-mark { width: 101px; height: 383px; flex: none; object-fit: contain; }

/* ---------- Feature / service boxes ---------- */
.features { padding: 70px 0; }
.box-grid {
  display: grid;
  grid-template-columns: repeat(4, 245px);
  justify-content: space-between;
  gap: 40px 24px;
}
.box-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
.box { display: flex; flex-direction: column; gap: 14px; }
.box h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.box p { font-size: 16px; line-height: 1.2; }
.icon {
  display: block;
  width: 100px;
  height: 100px;
  background-color: rgba(162,152,133,.5);
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
  transition: background-color .25s;
}
.box:hover .icon { background-color: var(--sand); }
.icon.dark { width: 95px; height: 95px; background-color: #000; }
.box:hover .icon.dark { background-color: var(--brand); }
.box .arrow { width: 24px; height: 23px; color: rgba(146,136,117,.54); }

/* ---------- About band ---------- */
.about-band {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  isolation: isolate;
}
.about-band .parallax-bg {
  position: absolute;
  inset: -25% 0;
  z-index: -2;
  background: url("/images/bg.jpg") center / cover no-repeat;
  will-change: transform;
}
.about-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 94.58% 91.35%, rgba(89,89,89,.6) 0%, 20%, rgba(89,89,89,0) 40%),
    radial-gradient(circle at 6.5% 88.04%, rgba(37,101,128,.75) 0%, 25%, rgba(37,101,128,0) 50%),
    radial-gradient(circle at 6.17% 12.62%, rgba(89,89,89,.6) 0%, 42%, rgba(89,89,89,0) 70%),
    radial-gradient(circle at 93.69% 11.43%, rgba(37,101,128,.7) 0%, 42%, rgba(37,101,128,0) 70%),
    rgba(37,101,128,.35);
}
.about-box { max-width: 760px; color: #fff; }
.about-box h2 { font-size: 55px; line-height: 1.2; font-weight: 700; color: var(--cream); margin-bottom: 24px; }
.about-box p { font-size: 18px; line-height: 1.5; margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 245px;
  height: 45px;
  padding: 0 28px;
  border: 0;
  border-radius: 50px;
  background: #000;
  color: #fff;
  font: 400 15px var(--font);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.btn:hover { background: #333; }
.btn:disabled { background: #e2e2e2; color: #8f8f8f; cursor: default; }

/* ---------- Brands ---------- */
.brands { padding: 90px 0; }
.brands .container {
  display: grid;
  grid-template-columns: 327px 1fr;
  gap: 40px;
  align-items: center;
}
.brands h2 { font-size: 25px; line-height: 1.3; font-weight: 700; }
.brand-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 580px; justify-self: end; width: 100%; }
.brand-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform .2s;
}
.brand-logos a:hover { transform: translateY(-3px); }
.brand-logos img { max-height: 100%; object-fit: contain; }

/* ---------- Section title card ---------- */
.title-band { background: var(--cream); padding: 40px 0; }
.title-band .glow-card { padding: 100px 40px; text-align: center; }
.title-band h2 { font-size: 45px; line-height: 1.2; font-weight: 700; }
.title-band .dots { font-size: 45px; line-height: .6; font-weight: 700; letter-spacing: .1em; }
.title-band .dots b { font-size: 79px; }
.services-in-card { margin-top: 70px; text-align: left; padding: 0 20px; }

/* ---------- Forms / tabs ---------- */
.forms { padding: 70px 0 100px; }
.tabs { width: min(756px, 100% - 40px); margin-inline: auto; }
.tab-list { display: flex; justify-content: center; gap: 20px; padding: 20px; }
.tab-list button {
  background: none;
  border: 0;
  border-top: 5px solid transparent;
  border-bottom: 1px solid transparent;
  padding: 12px 18px;
  font: 700 16px var(--font-form);
  color: #000;
  cursor: pointer;
}
.tab-list button[aria-selected="true"] { border-bottom: 5px solid #000; }
.tab-panel[hidden] { display: none; }
.form-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 20px; }

.lead-form {
  width: min(500px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  font-family: var(--font-form);
}
.lead-form .full { grid-column: 1 / -1; }
.lead-form > *, .field .time > * { min-width: 0; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; }
.field label .req { color: #000; margin-left: 2px; }
.field input, .field textarea, .field select {
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px solid #000;
  background: transparent;
  font: 16px var(--font-form);
  color: #000;
  border-radius: 0;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--brand); }
.field textarea { min-height: 90px; resize: vertical; }
.field select {
  padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.field .time { display: flex; align-items: center; gap: 6px; }
.field .time select { flex: 1; }
.field input[type="date"] { min-height: 42px; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .actions { display: flex; justify-content: center; }
.form-status { grid-column: 1 / -1; text-align: center; font-size: 15px; min-height: 1.2em; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #c62828; }

/* ---------- Inner page header ---------- */
.page-head { background: var(--cream); padding: 40px 0 60px; }
.page-head h1 { font-size: 56px; line-height: 1.2; font-weight: 700; }
.page-body { padding: 60px 0 100px; }

/* About page */
.prose { max-width: 900px; display: grid; gap: 24px; }
.prose p { font-size: 18px; line-height: 1.6; }

/* Products */
.cat { margin-bottom: 70px; }
.cat h2 { font-size: 30px; line-height: 1.2; font-weight: 700; margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product { display: flex; flex-direction: column; gap: 12px; }
.product .ph {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(162, 152, 133, .25);
}
.product img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.product:hover img { transform: scale(1.04); }
.product h3 { font-size: 16px; line-height: 1.3; font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info { display: grid; gap: 18px; font-size: 16px; line-height: 1.6; }
.contact-info a:hover { color: var(--brand); }
.contact-info .linkedin img { width: 32px; height: 32px; }
.map { margin-top: 60px; border-radius: 30px; overflow: hidden; border: 0; width: 100%; height: 420px; z-index: 0; background: #f2f2f2; }
.map-pin { cursor: pointer; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)) drop-shadow(0 4px 6px rgba(37,101,128,.35)); }
.map .maplibregl-popup-content {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(251, 247, 240, .85);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.map .maplibregl-popup-tip { border-top-color: rgba(251, 247, 240, .85); }
.map .maplibregl-popup-content a { color: var(--brand); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand);
  color: #fff;
  border-radius: 50px 50px 0 0;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 140px 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-grid .logo img { width: 200px; height: 102px; object-fit: contain; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: block; line-height: 31px; font-size: 15px; color: #fff; }
.footer-nav a:hover, .footer-nav a.active { color: var(--cream); text-decoration: underline; }
.footer-grid p { font-size: 15px; line-height: 1.6; color: #fafafa; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .box-grid { grid-template-columns: repeat(2, minmax(0, 245px)); justify-content: space-around; }
  .box-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-bar {
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 14px 10px 22px;
    border-radius: 32px;
  }
  .header-bar .logo img { height: 36px; }
  .main-nav {
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
  }
  .main-nav.open { grid-template-rows: 1fr; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    min-height: 0;
  }
  .main-nav li:first-child { margin-top: 10px; }
  .main-nav li:last-child { margin-bottom: 6px; }
  .main-nav a { padding: 12px 0; font-size: 17px; border-bottom: 0; }
  .main-nav a.active { border-bottom: 0; }

  .hero .glow-card { padding: 36px 24px; min-height: 0; gap: 20px; }
  .hero h1 { font-size: 26px; }
  .hero .hero-mark { width: 40px; height: 150px; }
  .box-grid, .box-grid.five { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .box { align-items: center; max-width: 300px; }
  .about-band { padding: 70px 0; }
  .about-band .parallax-bg { inset: 0; transform: none !important; will-change: auto; }
  .services-in-card { padding: 0; }
  .about-box h2 { font-size: 36px; }
  .brands .container { grid-template-columns: 1fr; }
  .brand-logos { gap: 12px; }
  .brand-logos a { border-radius: 20px; padding: 10px; }
  .title-band h2 { font-size: 30px; }
  .title-band .glow-card { padding: 60px 20px; }
  .lead-form { grid-template-columns: 1fr; }
  .tab-list { gap: 8px; padding: 12px 0; }
  .tab-list button { font-size: 14px; padding: 10px 8px; }
  .lead-form .btn { width: 100%; min-width: 0; }
  .page-head h1 { font-size: 38px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .site-footer { border-radius: 30px 30px 0 0; }
}
