@font-face {
  font-family: "Houschka Rounded";
  src: url("/fonts/houschka-rounded-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #e4822a;
  --accent-dark: #c96c18;
  --bg: #212326;
  --bg-alt: #2a2d31;
  --surface: rgba(20, 22, 25, 0.78);
  --text: #e9e9ea;
  --text-muted: #a9abae;
  --header-height: 72px;
  --font-heading: "Houschka Rounded", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(820px, 100% - 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img {
  width: 220px;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0.9rem;
  color: #6b6e72;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: #3a3d41;
  transition: transform 0.2s, background 0.2s;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .brand img {
    width: 170px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    background: #fff;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.2);
    display: none;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
  }

  .site-nav a::after {
    display: none;
  }
}

/* Sections */

.section {
  position: relative;
  padding: 6rem 0;
}

.section-image {
  isolation: isolate;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 22, 25, 0.55), rgba(20, 22, 25, 0.75));
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.6rem auto 0;
  background: var(--accent);
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.card p {
  margin: 0 0 1em;
}

.team {
  margin-top: 2rem;
  border-radius: 4px;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-top: var(--header-height);
  isolation: isolate;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 22, 25, 0.15), rgba(20, 22, 25, 0.6));
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover {
  background: var(--accent-dark);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 1.75rem 1.25rem;
  background: var(--surface);
  border-radius: 6px;
  border-top: 3px solid transparent;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.services li:hover {
  border-top-color: var(--accent);
  transform: translateY(-3px);
}

.services img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.services h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.services p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .services li {
    padding: 1.25rem 0.75rem;
  }

  .services img {
    width: 56px;
    height: 56px;
  }

  .services h3 {
    font-size: 1rem;
  }

  .services p {
    font-size: 0.85rem;
  }
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li:nth-child(1),
.gallery li:nth-child(2) {
  grid-column: span 3;
}

.gallery li {
  grid-column: span 2;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.4s;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.1);
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery li,
  .gallery li:nth-child(1),
  .gallery li:nth-child(2) {
    grid-column: auto;
  }
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(10, 11, 12, 0.92);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: calc(100vw - 7rem);
  max-height: calc(100vh - 4rem);
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: var(--accent);
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

@media (max-width: 700px) {
  .lightbox img {
    max-width: 100vw;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    translate: none;
  }
}

/* Contact & footer */

.section-contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.contact-grid .section-title,
.contact-grid .section-lead {
  text-align: left;
  margin-inline: 0;
}

.contact-grid .section-title::after {
  margin-left: 0;
}

.contact-card {
  padding: 2rem 2.25rem;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.8;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 2rem 0;
  background: #17191b;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-inner a {
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--accent);
}

/* Privacy page */

.page {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #fff;
}

.page h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #fff;
}

.page p,
.page li {
  color: var(--text);
}
