:root {
  color-scheme: light;
  --ink: #172022;
  --muted: #637074;
  --line: #d8e1df;
  --wash: #f5f8f4;
  --accent: #0f7f8c;
  --accent-dark: #075b66;
  --spark: #d8f35f;
  --shadow: 0 18px 52px rgba(31, 50, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(216, 225, 223, 0.82);
  background: rgba(245, 248, 244, 0.9);
  backdrop-filter: blur(14px);
}

.brand-link img {
  width: 220px;
  max-width: 42vw;
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a,
.primary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

nav a {
  color: var(--accent-dark);
  border: 1px solid #bcd1d1;
  background: #fff;
}

nav a:hover,
nav a.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #101719;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 16, 18, 0.86), rgba(7, 16, 18, 0.2)),
    linear-gradient(180deg, transparent 52%, rgba(7, 16, 18, 0.78));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--spark);
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.65;
}

.primary-link {
  color: var(--ink);
  background: var(--spark);
}

.primary-link:hover {
  background: #efff91;
}

.gallery-section {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-card {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 34, 0.12);
  border-radius: 8px;
  background: #dfe7e3;
  box-shadow: 0 10px 28px rgba(31, 50, 54, 0.09);
}

.gallery-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-contact {
  width: min(1440px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-contact h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.gallery-contact p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.phone-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--accent-dark);
  border: 1px solid #bcd1d1;
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading,
  .gallery-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  nav,
  .contact-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    padding-bottom: 42px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card.large,
  .gallery-card.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }
}
