:root {
  --red: #c8102e;
  --red-dark: #9a0c23;
  --ink: #121417;
  --ink-soft: #2a2f36;
  --muted: #5f6773;
  --line: #e4e0d8;
  --paper: #f4f1ea;
  --white: #fff;
  --shadow: 0 16px 40px rgba(18, 20, 23, 0.1);
  --radius: 14px;
  --header: 84px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  color: var(--red-dark);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--red);
}

.header-inner {
  position: relative;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

@media (min-width: 901px) {
  .brand-text {
    display: none;
  }
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text span {
  color: #b8bec8;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #3a4048;
  color: #fff;
  width: 44px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a {
  color: #d7dbe2;
  display: block;
  padding: 10px 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1b1f25;
  border: 1px solid #323840;
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.site-nav li:hover > .dropdown,
.site-nav li:focus-within > .dropdown {
  display: block;
}

.header-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 16px !important;
  font-weight: 700;
}

.header-cta:hover {
  background: var(--red-dark);
}

.hero {
  position: relative;
  min-height: 62vh;
  background: #000;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 48px 72px 48px 0;
  color: #fff;
}

.hero-copy > div {
  width: 100%;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 12px;
  max-width: none;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  margin: 0;
  font-size: 1.2rem;
  max-width: none;
}

.hero-nav {
  position: absolute;
  inset: auto 16px 20px auto;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-nav button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.hero-nav button:hover {
  background: var(--red);
}

.feature-grid,
.page-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: -48px auto 48px;
  position: relative;
  z-index: 4;
}

.card,
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

.card h2,
.page-title,
.entry h1,
.entry h2,
.entry h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-dark);
  color: #fff;
}

.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  margin-bottom: 48px;
}

.about img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.quote {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 16px;
  font-style: italic;
  font-size: 1.15rem;
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 42px 0 32px;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-hero p {
  margin: 0;
  color: #c5cad3;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 36px 0 64px;
}

.sidebar,
.entry,
.panel {
  padding: 24px;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.sidebar .map {
  border: 0;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  margin-top: 16px;
}

.entry ul:not(.wp-block-gallery) {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.entry ul:not(.wp-block-gallery) li {
  position: relative;
  padding: 10px 14px 10px 32px;
  background: var(--paper);
  border-radius: 10px;
}

.entry ul:not(.wp-block-gallery) li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.entry table,
.entry tbody {
  width: 100%;
}

.entry table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  border: 0;
}

.entry table tbody,
.entry table tr {
  display: contents;
}

.entry table td {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.entry table td:empty {
  display: none;
}

.entry .alignleft {
  float: none;
  display: block;
  margin: 0 0 16px;
}

.partner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.partner img {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.service-list li {
  font-weight: 700;
}

.coming-soon {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 700;
  font-size: 1.2rem;
}

.product-grid,
.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-gallery li {
  margin: 0;
  padding: 0;
  background: transparent;
}

.product-card,
.wp-block-gallery figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin: 0;
  width: 100%;
}

.product-card img,
.wp-block-gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #fafafa;
  border-radius: 8px;
}

.product-card img {
  object-fit: contain;
}

.wp-block-gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-grid label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}

.form-grid input,
.form-grid textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.form-grid .btn,
.wpcf7-submit,
.submit {
  margin-top: 16px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.form-status.is-success {
  background: #e8f6ec;
  color: #146c2e;
}

.form-status.is-error {
  background: #fdecea;
  color: #9a0c23;
}

.form-status.is-sending {
  background: #eef2f6;
  color: var(--ink-soft);
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.wp-block-separator,
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.card {
  overflow: hidden;
}

.card-media {
  margin: -28px -28px 20px;
  height: 168px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  cursor: zoom-out;
}

.empty-note {
  color: var(--muted);
}

.sidebar iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 10px;
}

.gallery-label {
  margin: 28px 0 12px;
  font-size: 1.4rem;
}

.wp-block-gallery a {
  display: block;
}

.comment {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  background: var(--paper);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.comment img {
  border-radius: 50%;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.feedback-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
}

.feedback-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.entry-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.15) 20%, rgba(18, 20, 23, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.card p {
  color: var(--muted);
}

.kicker {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-footer {
  background: var(--ink);
  color: #c9ced6;
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer a {
  color: #fff;
}

.site-footer h2 {
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.colophon {
  border-top: 1px solid #2c323a;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
}

.wpcf7-response-output {
  margin-top: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .feature-grid,
  .about,
  .layout,
  .footer-grid,
  .colophon {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #1b1f25;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .dropdown {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .hero-copy {
    min-height: 48vh;
  }

  .partner,
  .feedback-card,
  .comment {
    grid-template-columns: 1fr;
  }
}
