@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --radius: 0.625rem;
  --font-sans: "Source Sans 3", "Source Sans Pro", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --background: #f6f7f9;
  --foreground: #2c3038;
  --card: #ffffff;
  --primary: #1c77b1;
  --primary-foreground: #f4f9fc;
  --muted: #eff1f3;
  --muted-foreground: #6e7480;
  --accent: #e3eef6;
  --border: rgba(44, 48, 56, 0.14);
  --footer: #22252c;
  --footer-muted: #a8aeb8;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-xl {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-2xl {
  width: 2rem;
  height: 2rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 70%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.header-inner {
  margin: 0 auto;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 6rem;
  transition: height 0.3s;
}

.site-header.is-scrolled .header-inner {
  height: 4rem;
}

.logo img {
  width: auto;
  height: 5rem;
  object-fit: contain;
  transition: height 0.3s;
}

.site-header.is-scrolled .logo img {
  height: 3rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-toggle {
  display: flex;
  color: var(--foreground);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-menu {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
}

.nav-mobile .nav-link {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-mobile .nav-link:last-child {
  border-bottom: 0;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--background) 95%, transparent),
    color-mix(in srgb, var(--background) 70%, transparent),
    color-mix(in srgb, var(--background) 30%, transparent)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  width: 100%;
  max-width: var(--max);
  padding: 0 1rem;
  animation: fade-in 0.6s ease-out;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.hero h1 span {
  display: block;
  color: var(--primary);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s, filter 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 40%, transparent);
  color: var(--foreground);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  color: var(--muted-foreground);
  animation: bounce 1.4s infinite;
  transition: color 0.2s;
}

.scroll-hint:hover {
  color: var(--primary);
}

/* Gallery */
.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 6rem 1rem;
  scroll-margin-top: 4rem;
}

.section-head {
  margin-bottom: 3rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted-foreground);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.9);
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fade-in 0.3s ease-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 85vh;
  max-width: 100%;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  transition: background 0.2s;
}

.lightbox-btn svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.lightbox-btn:hover {
  background: rgb(255 255 255 / 0.2);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 50%, transparent);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

a.contact-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  transform: scale(1.05);
}

.contact-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.contact-line {
  display: block;
  font-weight: 500;
  color: var(--foreground);
}

.contact-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Footer */
.site-footer {
  background: var(--footer);
  padding: 2rem 1rem;
}

.site-footer p {
  text-align: center;
  font-size: 0.875rem;
  color: var(--footer-muted);
}

/* 404 */
.page-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.page-error h1 {
  font-size: 4.5rem;
  font-weight: 800;
}

.page-error h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.page-error p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.page-error .btn {
  margin-top: 1.5rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (min-width: 640px) {
  .header-inner,
  .hero-content,
  .section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .header-inner {
    height: 7rem;
  }

  .logo img {
    height: 6rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero-lead {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .section-head h2 {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }

  .hero h1 {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.lightbox-open {
  overflow: hidden;
}
