@import url("content.css");

:root {
  --primary: #991f36;
  --primary-2: #971f36;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --mist: #f3f5fa;
  --line: #d5d5d5;
  --accent-text: #ffffff;
  --header-h: 111px;
  --ease-ad: cubic-bezier(0.7, 0, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip:focus {
  left: 8px;
}

/* Header fade — matches original adFadeInIn */
@keyframes adFadeInIn {
  0% {
    opacity: 0;
    transform: translateY(0) translateZ(0) scaleY(0.7);
    transform-origin: center top;
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) skewY(0deg) scaleY(1);
  }
}

@keyframes adFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px) translateZ(0) skewY(4deg) scaleY(1.4);
    transform-origin: left top;
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0) skewY(0deg) scaleY(1);
  }
}

@keyframes kenBurnsIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.3); }
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--primary-2);
  color: #fff;
  animation: adFadeInIn 380ms var(--ease-ad) both;
}

.header-inner {
  display: flex;
  align-items: stretch;
  min-height: var(--header-h);
  max-width: 1780px;
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
}

body.desktop-site {
  min-width: 1280px;
}

.site-header .logo {
  flex: 0 0 auto;
  gap: 14px;
  padding: 12px 20px 12px 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
}

.logo-wordmark strong {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo-wordmark span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.92;
}

.site-footer .logo-wordmark {
  color: var(--ink);
}

.logo-mark {
  width: 92px;
  height: 80px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  box-sizing: border-box;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 10px 0;
  min-height: 46px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #fff;
}

.contact-line a,
.contact-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.contact-line svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  flex-shrink: 0;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.socials a svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 65px;
}

.nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav > li:hover > a,
.nav > li > a.is-active {
  opacity: 0.85;
}

.nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.nav > li:hover > .sub,
.nav > li:focus-within > .sub {
  display: block;
}

.nav .sub a {
  display: block;
  padding: 7px 20px;
  font-size: 14px;
  text-transform: capitalize;
  color: var(--ink);
}

.nav .sub a:hover {
  color: var(--primary);
  background: var(--mist);
}

.nav .sub.sub-wide {
  min-width: 300px;
}

.nav .sub .sub {
  top: 0;
  left: 100%;
}

.nav > li > a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav .has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}

.search-btn,
.menu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search-btn svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
}

.btn-touch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 28px;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-touch svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.btn-touch:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* Sticky sky stack — original .wdt-sky-section */
.sky-stack {
  position: relative;
}

.sky-section {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.sky-section:first-child {
  height: calc(100vh - var(--header-h));
}

.sky-section:nth-child(1) { z-index: 1; }
.sky-section:nth-child(2) { z-index: 2; }
.sky-section:nth-child(3) { z-index: 3; }
.sky-section:nth-child(4) { z-index: 4; }
.sky-section:nth-child(5) { z-index: 5; }

.sky-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center center;
  animation: kenBurnsIn 20s linear forwards;
  z-index: 0;
}

.sky-section:nth-child(1) { padding-top: 40px; }

.sky-section:nth-child(1) .sky-bg {
  background-color: #4e6e4a;
  background-image: linear-gradient(160deg, #7da56a 0%, #4a6b48 42%, #2f4a52 100%);
}

.sky-section:nth-child(2) .sky-bg {
  background-color: #5a6a5c;
  background-image: linear-gradient(160deg, #6e7d70 0%, #4a5550 55%, #2c3330 100%);
}

.sky-section:nth-child(3) .sky-bg {
  background-color: #6a6a52;
  background-image: linear-gradient(160deg, #8a8a62 0%, #5a5a40 50%, #3a3a30 100%);
}

.sky-section:nth-child(4) .sky-bg {
  background-color: #6b8aa0;
  background-image: linear-gradient(160deg, #87b0c8 0%, #5a7a90 50%, #3a4a55 100%);
}

.sky-section:nth-child(5) .sky-bg {
  background-color: #7a8a8c;
  background-image: linear-gradient(160deg, #9aa8aa 0%, #6a7878 50%, #3e4848 100%);
}

.sky-card {
  position: relative;
  z-index: 2;
  width: min(704px, 55vw);
  background: var(--primary);
  color: #fff;
  padding: clamp(1.875rem, 1.457rem + 1.9108vw, 3.75rem);
  margin: 0 auto 0 0;
}

.sky-card.is-in {
  animation: adFadeInUp 380ms var(--ease-ad) both;
}

.sky-section:not(:first-child) .sky-card {
  width: min(625px, 49vw);
}

.sky-kicker {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
}

.sky-card h2 {
  margin: 0 0 20px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.5rem, 1.3625rem + 0.6875vw, 2.1875rem);
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
}

.sky-card h2 a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.sky-card p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
}

.sky-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 18px 30px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.sky-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.sky-btn:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

.sky-btn:hover svg {
  transform: translate(2px, -2px);
}

/* News */
.news {
  position: relative;
  z-index: 6;
  background: #fff;
  padding: 72px 40px 80px;
}

.news-inner {
  max-width: min(100%, 1780px);
  margin: 0 auto;
}

.news h2 {
  margin: 0 0 28px;
  font-family: inherit;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.615rem);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.news-card {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  color: #fff;
}

.news-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
}

.news-card:hover .news-thumb {
  transform: scale(1.1);
  filter: brightness(0.85);
}

.news-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.news-cats span {
  font-size: 14px;
  color: #fff;
}

.news-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}

.news-meta {
  margin: 0;
  font-size: 13px;
  color: #fff;
}

.svc-01 { background-image: linear-gradient(135deg, #3a4550, #1e2428); }
.svc-02 { background-image: linear-gradient(135deg, #2c3a4a, #1a2430); }
.svc-03 { background-image: linear-gradient(135deg, #4a3a2a, #2a2018); }
.svc-04 { background-image: linear-gradient(135deg, #4a3038, #2a181c); }

.page-main {
  position: relative;
  z-index: 6;
  background: #fff;
}

.page-hero {
  background: var(--primary-2);
  color: #fff;
  padding: 56px 40px 48px;
}

.page-hero-inner {
  max-width: 1780px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-hero .lead {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.75;
  opacity: 0.95;
}

.page-hero.has-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(151, 31, 54, 0.92) 0%, rgba(151, 31, 54, 0.78) 45%, rgba(20, 20, 20, 0.55) 100%);
}

.page-hero.has-photo .page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-content {
  max-width: 1780px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.page-content h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-2);
  text-transform: uppercase;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  max-width: 72ch;
}

.page-content ul {
  padding-left: 1.25rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  border: 1px solid var(--line);
  padding: 24px;
  max-width: none;
}

.service-list h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.service-list a {
  color: var(--primary);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

.contact-card {
  background: var(--mist);
  padding: 28px;
}

.contact-card h3 {
  margin: 0 0 12px;
  color: var(--primary-2);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.contact-form label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ink);
}

.legal-content {
  max-width: 800px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 6;
  background: #fff;
  padding: 64px 40px 0;
  border-top: 1px solid #eee;
}

.footer-grid {
  max-width: min(100%, 1780px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1.1fr 1.35fr;
  gap: 36px 28px;
}

.footer-brand .logo {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.footer-brand .logo-mark {
  width: 110px;
  height: 96px;
}

.footer-brand p {
  margin: 0 0 22px;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-2);
}

.footer-follow {
  display: flex;
  flex-direction: column;
}

.footer-follow .socials a {
  background: var(--primary);
  color: #fff;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 0 0 10px;
}

.footer-grid a {
  font-size: 14px;
  color: var(--ink);
}

.footer-grid a:hover {
  color: var(--primary);
}

.loc-block {
  margin-bottom: 22px;
}

.loc-block strong {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
}

.loc-block li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
}

.pin {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  flex-shrink: 0;
  fill: var(--primary);
}

.footer-reg {
  font-size: 14px;
  color: #555;
}

.footer-legal {
  max-width: min(100%, 1780px);
  margin: 48px auto 0;
  padding: 22px 0 28px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal .copy {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  font-size: 14px;
  color: var(--ink);
}

.footer-legal a:hover,
.copy a:hover {
  color: var(--primary);
}

/* Search overlay */
.search-layer {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.92);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.search-layer.is-open {
  display: flex;
}

.search-layer form {
  width: min(640px, 100%);
  display: flex;
  border-bottom: 2px solid #fff;
}

.search-layer input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  padding: 12px 0;
  outline: none;
}

.search-layer input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1200px) {
  .contact-line span:last-child {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .header-top {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header-inner {
    min-height: 72px;
  }

  .sky-card,
  .sky-section:not(:first-child) .sky-card {
    width: min(100%, 520px);
    margin: 0 20px 28px;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--primary-2);
    padding: 8px 0 20px;
    z-index: 40;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav a {
    display: block;
    padding: 10px 28px;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .news {
    padding: 48px 16px 56px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 40px 16px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sky-section {
    min-height: 100svh;
  }

  .btn-touch {
    padding: 8px 14px;
  }

  .btn-touch span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .sky-card,
  .sky-bg {
    animation: none !important;
  }
}
