/* ==========================================================================
   Petra Studio — static build
   Design tokens ported 1:1 from the original Tailwind v4 theme.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Karla:wght@400;500;600&display=swap");

:root {
  --radius: 0.25rem;

  /* warm limestone paper */
  --background: oklch(0.968 0.012 85);
  --foreground: oklch(0.28 0.018 70);
  --card: oklch(0.985 0.008 85);
  --card-foreground: oklch(0.28 0.018 70);

  /* olive */
  --primary: oklch(0.44 0.045 110);
  --primary-foreground: oklch(0.975 0.012 85);
  --secondary: oklch(0.93 0.018 85);
  --secondary-foreground: oklch(0.32 0.02 70);
  --muted: oklch(0.93 0.016 85);
  --muted-foreground: oklch(0.5 0.018 75);
  --accent: oklch(0.9 0.022 85);
  --accent-foreground: oklch(0.3 0.02 70);
  --border: oklch(0.87 0.016 85);
  --input: oklch(0.87 0.016 85);
  --ring: oklch(0.44 0.045 110);

  --stone-deep: oklch(0.36 0.02 70);
  --olive: oklch(0.44 0.045 110);
  --sea: oklch(0.48 0.06 230);
  --sand: oklch(0.9 0.03 80);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Karla", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ---- helpers ------------------------------------------------------- */

.wrap {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.muted {
  color: var(--muted-foreground);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- scroll-entrance animations ------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

.reveal-image {
  clip-path: inset(0 0 12% 0);
  opacity: 0;
  transition:
    clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s ease;
}
.reveal-image[data-visible="true"] {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-image {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
}

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

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--stone-deep) 78%, transparent) 0%,
    color-mix(in oklab, var(--stone-deep) 22%, transparent) 45%,
    color-mix(in oklab, var(--stone-deep) 26%, transparent) 100%
  );
}

.hero__content {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem 6rem;
}

.hero__eyebrow {
  color: color-mix(in oklab, var(--primary-foreground) 78%, transparent);
}

.hero__body {
  max-width: 42rem;
}

.hero__title {
  color: var(--primary-foreground);
  font-size: 3.25rem;
  line-height: 0.95;
}

.hero__tagline {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--primary-foreground) 86%, transparent);
}

.hero__cta {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 55%, transparent);
  background-color: color-mix(in oklab, var(--primary-foreground) 6%, transparent);
  color: var(--primary-foreground);
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.5s, border-color 0.5s;
}

.hero__cta:hover {
  background-color: color-mix(in oklab, var(--primary-foreground) 14%, transparent);
}

@media (min-width: 640px) {
  .hero__content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .hero__title {
    font-size: 4.5rem;
  }
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: 4rem;
  }
  .hero__title {
    font-size: 6rem;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  max-width: 64rem;
  padding: 6rem 1.5rem;
}

.about__title {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.875rem;
  line-height: 1.15;
}

.about__grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted-foreground);
}

.amenities {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.875rem;
}

.amenities li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-bottom: 0.75rem;
  margin-top: 0.75rem;
}

.amenities li:first-child {
  margin-top: 0;
}

.amenities li span:first-child {
  color: var(--primary);
}

@media (min-width: 640px) {
  .about {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .about__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .about {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
  .about__title {
    font-size: 3rem;
  }
  .about__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  padding: 0 0.75rem 6rem;
}

.gallery__head {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.75rem;
}

.gallery__grid {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.gallery__col {
  display: grid;
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--muted);
  border: 0;
  padding: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease-out;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item--wide img {
  aspect-ratio: 4 / 3;
}

.gallery__item--tall img {
  aspect-ratio: 3 / 4;
}

@media (min-width: 640px) {
  .gallery {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .gallery__head {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__col--right {
    padding-top: 2.5rem;
  }
  .gallery__item--full {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 768px) {
  .gallery {
    padding-bottom: 8rem;
  }
  .gallery__grid {
    gap: 1rem;
  }
  .gallery__col {
    gap: 1rem;
  }
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: color-mix(in oklab, var(--stone-deep) 94%, transparent);
  animation: fade-in 0.3s ease;
}

.lightbox.is-open {
  display: flex;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox__img {
  max-height: 78svh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox__nav {
  margin-top: 1.25rem;
  display: flex;
  width: 100%;
  max-width: 28rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--primary-foreground) 75%, transparent);
}

.lightbox__nav button {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  color: inherit;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-foreground);
  background: none;
  border: none;
}

/* ==========================================================================
   Location
   ========================================================================== */

.location {
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 6rem 1.5rem;
}

.location__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.location__title {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.875rem;
  line-height: 1.15;
}

.location__grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

.location dl {
  font-size: 0.875rem;
  margin: 0;
}

.location dl div {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding: 1rem 0;
}

.location dt {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.location dd {
  margin: 0.5rem 0 0;
}

.location__maplink {
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.location__mapwrap {
  overflow: hidden;
  border: 1px solid var(--border);
}

.location__mapwrap iframe {
  height: 320px;
  width: 100%;
  border: 0;
  filter: saturate(0.72) contrast(1.02);
  display: block;
}

@media (min-width: 640px) {
  .location {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .location__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .location {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
  .location__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
  }
  .location__mapwrap iframe {
    height: 440px;
  }
}

/* ==========================================================================
   Booking form
   ========================================================================== */

.book {
  padding: 6rem 1.5rem;
}

.book__inner {
  max-width: 48rem;
  margin: 0 auto;
}

.book__title {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1.875rem;
  line-height: 1.15;
}

.book__sub {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

form.book-form {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
}

.book-form label {
  display: block;
}

.book-form .field {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  outline: none;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.2s;
}

.book-form .field::placeholder {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}

.book-form .field:focus {
  border-color: var(--primary);
}

.book-form textarea.field {
  resize: none;
}

.book-form .submit {
  margin-top: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  grid-column: span 2 / span 2;
}

.book-form .submit:hover {
  opacity: 0.9;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  border: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.contact-links a:hover {
  background: var(--accent);
}

.book-confirm {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.book-confirm__check {
  color: var(--primary);
  font-size: 1.875rem;
}

.book-confirm h2 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
}

.book-confirm p {
  margin: 1rem auto 0;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.book-confirm button {
  margin-top: 2rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 8px;
}

.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .book {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .book__title {
    font-size: 2.25rem;
  }
  form.book-form {
    grid-template-columns: 1fr 1fr;
  }
  .book-form .full {
    grid-column: span 2 / span 2;
  }
  .book-confirm {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .book {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 7rem;
  text-align: center;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.site-footer__loc {
  margin-top: 0.75rem;
}

.site-footer__contact {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .site-footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

/* ==========================================================================
   Sticky book bar (mobile only)
   ========================================================================== */

.sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sticky-bar__info {
  min-width: 0;
  flex: 1;
}

.sticky-bar__info p:first-child {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar__info p:last-child {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar__cta {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .sticky-bar {
    display: none;
  }
}
