:root {
  --cream: #f5f1e8;
  --beige: #e8dccb;
  --brown: #b7a28a;
  --green: #5f7d6a;
  --graphite: #2f2f2f;
  --paper: #fffdf8;
}

@font-face {
  font-family: "Janifera Regular";
  src: url("/fonts/Janifera.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RareBird Regular";
  src: url("/fonts/RareBirdSpecimenVI-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--graphite);
  background: radial-gradient(circle at top right, #f9f5ed 0%, var(--cream) 42%, #f3ecdf 100%);
  line-height: 1.6;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(245, 241, 232, 0.92);
  border-bottom: 1px solid color-mix(in srgb, var(--brown) 30%, white 70%);
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.75);
  border-bottom: 1px solid color-mix(in srgb, var(--brown) 22%, white 78%);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  display: block;
  width: min(48vw, 260px);
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--green) 84%, black 16%);
  background: var(--green);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 999px;
}

.menu-toggle:hover {
  background: color-mix(in srgb, var(--green) 86%, black 14%);
}

.main-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.main-nav a:hover {
  background: color-mix(in srgb, var(--beige) 72%, white 28%);
}

.hero {
  padding: 5rem 0 4rem;
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.hero-text {
  max-width: 40ch;
  margin-top: 1rem;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--green) 86%, black 14%);
}

.btn-ghost {
  border-color: color-mix(in srgb, var(--brown) 70%, white 30%);
  background: color-mix(in srgb, var(--paper) 86%, var(--beige) 14%);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--beige) 45%, white 55%);
}

.btn-small {
  padding: 0.54rem 1rem;
  font-size: 0.92rem;
}

.hero-visual {
  min-height: 380px;
  border-radius: 1.2rem;
  background: linear-gradient(125deg, #dbcbb8, #c3ab8f 56%, #aa8f70);
  box-shadow: 0 20px 45px rgba(46, 35, 22, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-carousel-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 280ms ease;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 21, 17, 0.34), rgba(255, 255, 255, 0.08) 55%);
}

.hero-card {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  background: color-mix(in srgb, var(--paper) 88%, var(--beige) 12%);
  border: 1px solid color-mix(in srgb, var(--brown) 52%, white 48%);
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
}

.hero-card-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.hero-card p {
  margin: 0;
  font-size: 0.92rem;
}

.tabs {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.tab {
  border: 1px solid color-mix(in srgb, var(--brown) 50%, white 50%);
  background: color-mix(in srgb, var(--paper) 72%, white 28%);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  color: var(--graphite);
}

.tab.active {
  background: var(--beige);
}

.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: color-mix(in srgb, var(--paper) 90%, white 10%);
  border: 1px solid color-mix(in srgb, var(--brown) 34%, white 66%);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
}

.card.hidden {
  display: none;
}

.card-media {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-media.horse {
  background-image: linear-gradient(135deg, #d7c6ad, #b79879);
}

.card-media.bird {
  background-image: linear-gradient(135deg, #d8cebd, #c0a98f);
}

.card-media.moss {
  background-image: linear-gradient(135deg, #acb29f, #6f705e);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  font-size: 1.5rem;
}

.card-price {
  margin: 0;
  font-weight: 600;
  color: #4b4b4b;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card .btn-small {
  margin-top: auto;
  align-self: flex-start;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.painting-item {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--brown) 32%, white 68%);
  border-radius: 0.85rem;
  display: block;
  margin: 0;
  padding: 0;
  background: color-mix(in srgb, var(--paper) 92%, var(--beige) 8%);
  cursor: pointer;
}

.painting-item span {
  display: block;
  min-height: 240px;
  border-radius: 0.8rem;
  margin: 0.6rem;
  background: linear-gradient(145deg, #b5baa2, #87967f 38%, #d6b289 80%);
}

.painting-card {
  overflow: hidden;
}

.painting-card .painting-item {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brown) 32%, white 68%);
  border-radius: 0;
}

.painting-card .painting-item span {
  margin: 0;
  border-radius: 0;
}

.painting-card .painting-item:hover span {
  filter: brightness(1.05);
}

.painting-card-body {
  gap: 0.55rem;
}

.painting-meta {
  margin: 0;
  color: #5d5d5d;
  font-size: 0.93rem;
}

.painting-item.has-image span,
.card-media.has-image {
  background-size: cover;
  background-position: center;
}

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

.about-photo {
  min-height: 340px;
  border-radius: 1rem;
  background-image: url("/img/anna.jfif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-color: color-mix(in srgb, var(--paper) 80%, var(--beige) 20%);
  border: 1px solid color-mix(in srgb, var(--brown) 50%, white 50%);
}

.about-content p {
  margin: 0.8rem 0;
  max-width: 50ch;
}

.testimonials-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: color-mix(in srgb, var(--paper) 92%, white 8%);
  border: 1px solid color-mix(in srgb, var(--brown) 36%, white 64%);
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.testimonial-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0.7rem;
  object-fit: cover;
  margin-bottom: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--brown) 35%, white 65%);
}

.testimonial-text {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  margin: 0.8rem 0 0;
  font-weight: 600;
}

.testimonial-source {
  margin: 0.15rem 0 0.4rem;
  color: #636363;
  font-size: 0.92rem;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--brown) 44%, white 56%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 90%, white 10%);
  color: var(--graphite);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.testimonial-arrow:hover {
  background: color-mix(in srgb, var(--beige) 40%, white 60%);
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.review-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.review-modal-content {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
  border-radius: 1rem;
}

.review-modal-image {
  width: 100%;
  height: 100%;
  max-height: 92vh;
  object-fit: contain;
  background: color-mix(in srgb, var(--paper) 90%, var(--beige) 10%);
}

.review-modal-body {
  padding: 1rem 1.1rem;
}

.review-modal-stars {
  margin: 0;
  color: #b38f47;
  letter-spacing: 0.08em;
}

.review-modal-author {
  margin: 0.6rem 0 0;
  font-weight: 700;
}

.review-modal-source {
  margin: 0.2rem 0 0.7rem;
  color: #666;
}

.review-modal-text {
  margin: 0;
}

.review-modal-close {
  position: fixed;
  z-index: 2201;
  top: 0.8rem;
  right: 1rem;
  color: #fff;
  font-size: 2.2rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.signature {
  margin-top: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  color: color-mix(in srgb, var(--graphite) 72%, var(--brown) 28%);
}

.signature-image {
  margin-top: 1rem;
  width: min(90px, 100%);
  height: auto;
  display: block;
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--brown) 40%, white 60%);
}

.footer-text {
  text-align: center;
  margin-bottom: 1rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.contact-card {
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--brown) 42%, white 58%);
  background: color-mix(in srgb, var(--paper) 92%, white 8%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1rem;
  transition: 180ms ease;
}

.contact-card:hover {
  background: color-mix(in srgb, var(--beige) 28%, white 72%);
  border-color: color-mix(in srgb, var(--green) 45%, white 55%);
}

.contact-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: color-mix(in srgb, var(--green) 70%, var(--graphite) 30%);
}

.contact-icon-max {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.5) sepia(0.2) hue-rotate(330deg) brightness(0.92);
}

.copyright {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--graphite) 68%, white 32%);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: min(96vw, 1400px);
  max-height: 92vh;
  background: transparent;
  border-radius: 1rem;
  padding: 0;
  display: grid;
  justify-items: center;
}

.lightbox-image {
  max-width: 96vw;
  max-height: calc(92vh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.8rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  background: transparent;
}

.lightbox-content p {
  margin: 0.75rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: #fff;
  text-align: center;
}

#lightboxMeta {
  margin-top: 0.35rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  max-width: min(96vw, 960px);
  color: color-mix(in srgb, #ffffff 88%, var(--beige) 12%);
}

#lightboxTitle:empty,
#lightboxMeta:empty {
  display: none;
}

.lightbox-close {
  position: fixed;
  z-index: 2001;
  top: 0.7rem;
  right: 1rem;
  font-size: 2.2rem;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

@media (max-width: 920px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-modal-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .header-inner {
    min-height: 62px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(260px, calc(100vw - 2rem));
    padding: 0.6rem;
    background: color-mix(in srgb, var(--paper) 92%, white 8%);
    border: 1px solid color-mix(in srgb, var(--brown) 40%, white 60%);
    border-radius: 0.8rem;
    box-shadow: 0 12px 28px rgba(40, 30, 20, 0.12);
    z-index: 30;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .main-nav a {
    width: 100%;
  }

  .brand-logo {
    width: min(62vw, 220px);
  }

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

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

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

  .testimonial-arrow {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero-visual {
    min-height: 280px;
  }
}
