:root {
  --bg: #ffffff;
  --text: #191919;
  --muted: #6f6f6f;
  --line: rgba(0, 0, 0, 0.08);
  --header-height: 110px;
  --content-max: 1560px;
  --page-gutter: 14px;
  --transition: 180ms ease;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Playfair Display", serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 50;
}

.logo-link {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 3;
}

.site-logo {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-left {
  grid-column: 1;
  justify-self: start;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
}

.desktop-nav a {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.desktop-nav a:hover {
  opacity: 0.6;
}

.menu-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 40;
  flex-direction: column;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: var(--header-height);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-menu a {
  display: inline-block;
  padding: 10px 0;
  font-size: 26px;
  font-weight: 600;
}

.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding-bottom: 50px;
}

.mobile-socials .social-link {
  font-size: 16px;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.mobile-socials .social-link:hover {
  opacity: 1;
}

.site-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hero-carousel-section {
  padding: 0 0 18px;
}

.carousel-shell {
  position: relative;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 8px 0 0;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  position: relative;
  height: var(--carousel-height, 72vh);
  min-height: 420px;
  max-height: 780px;
  overflow: hidden;
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.carousel-item img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: #111;
  transition: background var(--transition), transform var(--transition);
}

.carousel-arrow:hover {
  background: #fff;
}

.carousel-arrow-left {
  left: 12px;
}

.carousel-arrow-right {
  right: 12px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 18px 20px 30px;
}

.social-link {
  font-size: 18px;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.social-link:hover {
  opacity: 1;
}

/* Generic Page Overrides */
/* ------------------------------------- */

body.page-carousel-small .hero-carousel-section {
  height: auto;
  min-height: auto;
  padding-bottom: 30px;
}

body.page-carousel-small .carousel-track {
  height: 45vh;
}

body.page-carousel-small .carousel-item {
  min-height: 280px;
}

/* Page Text Content */
/* ------------------------------------- */

.page-text-content {
  padding: 20px 0 80px;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page-text-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  color: var(--text-color);
}

.page-text-inner p {
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.page-text-inner ol {
  list-style-type: decimal;
  padding-left: 20px;
}

.page-text-inner ul {
  list-style-type: disc;
  padding-left: 20px;
}

.page-text-inner li {
  font-size: 13px;
  line-height: 2.2;
}

.page-text-inner li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: opacity 0.2s ease;
}

.page-text-inner li a:hover {
  opacity: 0.6;
}

/* Contact Page Specific */
.page-contact .page-text-inner p {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #444;
}
.page-contact .page-text-inner a {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.page-contact .page-text-inner a:hover {
  color: #000;
}

@media (min-width: 1440px) {
  .desktop-nav {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    height: 100%;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    min-height: 92px;
    padding: 16px 18px;
  }

  .site-logo {
    max-height: 28px;
  }

  .carousel-track {
    gap: 12px;
  }

  .carousel-item {
    min-height: 360px;
    height: 64vh;
  }
}

@media (max-width: 760px) {
  .site-main {
    padding: 0 10px;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .logo-link {
    grid-column: 2;
  }

  .menu-toggle {
    grid-column: 3;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .carousel-item {
    min-height: 300px;
    height: 56vh;
  }
}