/* =====================================================================
   Diamond Seaview Penthouse — Peroj, Istria
   Single-page accommodation site
   Palette: warm Istrian limestone + cream surfaces, deep Adriatic ink
   Type: Gambarino (display serif) + Satoshi (body sans), via Fontshare
   ===================================================================== */

:root {
  /* Surfaces — warm limestone / cream */
  --cream:        #f6f1e6;
  --cream-2:      #efe7d6;
  --cream-3:      #e7dcc4;
  --paper:        #fbf8f1;
  --line:         #d8cdb4;
  --line-soft:    #e6dcc4;

  /* Ink — deep Adriatic */
  --ink:          #0e3a4a;     /* primary brand ink */
  --ink-2:        #11475b;
  --ink-soft:     #2a5867;
  --text:         #1f2a2f;
  --text-muted:   #5b6770;
  --text-faint:   #8b9099;

  /* Accent — muted teal */
  --teal:         #1f6f7b;
  --teal-hover:   #18525c;

  /* Layout */
  --max:          1180px;
  --pad-x:        clamp(20px, 4vw, 40px);
  --r-sm:         8px;
  --r-md:         14px;
  --r-lg:         22px;
  --r-xl:         28px;

  /* Type */
  --f-display:    "Gambarino", "Iowan Old Style", Georgia, serif;
  --f-body:       "Satoshi", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;

  /* Shadows */
  --sh-card:      0 1px 0 rgba(14,58,74,0.06), 0 10px 30px -18px rgba(14,58,74,0.25);
  --sh-soft:      0 1px 0 rgba(14,58,74,0.06), 0 18px 40px -28px rgba(14,58,74,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 17px;
}
img, svg { display: block; max-width: 100%; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: var(--teal-hover); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ======================== HEADER ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--cream) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--ink); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--teal-hover); }
.nav .nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 180ms ease, transform 180ms ease;
}
.nav .nav-cta:hover {
  background: var(--ink-2);
  color: var(--cream);
}
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-sub { display: none; }
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ink-2);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ======================== TYPE ======================== */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.eyebrow.muted { color: var(--text-muted); }
.eyebrow.on-dark { color: rgba(246,241,230,0.7); }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 18px;
}
.section-title.on-dark { color: var(--cream); }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 60ch;
}
.lede.on-dark { color: rgba(246,241,230,0.86); }
.lede.narrow { max-width: 56ch; }

/* ======================== HERO ======================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 14vh, 140px) 0 clamp(70px, 12vh, 120px);
  background:
    linear-gradient(90deg, rgba(246,241,230,0.98) 0%, rgba(246,241,230,0.92) 45%, rgba(246,241,230,0.62) 72%, rgba(246,241,230,0.42) 100%),
    radial-gradient(120% 80% at 100% 0%, rgba(14,58,74,0.08), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(14,58,74,0.06), transparent 60%),
    url("assets/photos/peroj-beach.jpg") right center / cover no-repeat,
    var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(14,58,74,0.045) 0 1px,
      transparent 1px 90px
    );
  pointer-events: none;
  opacity: 0.7;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}
.hero-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(14,58,74,0.08), transparent 50%),
    radial-gradient(2px 2px at 78% 38%, rgba(14,58,74,0.06), transparent 50%),
    radial-gradient(2px 2px at 32% 78%, rgba(14,58,74,0.07), transparent 50%),
    radial-gradient(2px 2px at 88% 80%, rgba(14,58,74,0.05), transparent 50%);
  opacity: 0.7;
}
.hero-inner { position: relative; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 26px;
  max-width: 18ch;
}
.hero-lede {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--text);
  max-width: 58ch;
  margin: 0 0 32px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 760px;
  margin: 0;
}
.hero-facts div { margin: 0; }
.hero-facts dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink);
}
@media (max-width: 640px) {
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ======================== PHOTO STRIP ======================== */
.photo-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}
.photo-strip-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 16px;
}
.photo-strip-card,
.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
}
.photo-strip-card {
  min-height: 220px;
  border-radius: var(--r-lg);
}
.photo-strip-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms ease;
}
.photo-strip-card:hover img,
.gallery-item:hover img {
  transform: scale(1.035);
}
.photo-strip-card figcaption,
.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(14,58,74,0.82);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
@media (max-width: 820px) {
  .photo-strip-grid {
    grid-template-columns: 1fr;
  }
  .photo-strip-card {
    min-height: 260px;
  }
}

/* ======================== SECTIONS ======================== */
.section {
  padding: clamp(70px, 11vh, 120px) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.section-stay {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.section-amenities {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.section-gallery {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.section-location {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.two-col.reverse .col-text { order: 1; }
.two-col.reverse .col-map  { order: 2; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-text { order: 2; }
  .two-col.reverse .col-map  { order: 1; }
}

.col-card.card-soft {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 28px 22px;
  box-shadow: var(--sh-soft);
}
.card-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.kv {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kv li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 15px;
}
.kv li:last-child { border-bottom: 0; }
.kv span {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.kv strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

/* ======================== AMENITIES ======================== */
.amenity-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 880px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .amenity-grid { grid-template-columns: 1fr; }
}
.amenity {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 22px 22px 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.amenity:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
  border-color: var(--line);
}
.amenity .ico {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.amenity h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.amenity p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.amenity-supporting {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
}
.support-title {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.chips {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.fine-print {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.fine-print.on-dark { color: rgba(246,241,230,0.65); }

/* ======================== GALLERY ======================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--r-md);
  box-shadow: var(--sh-card);
}
.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item.tall {
  grid-row: span 2;
}
@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-feature,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ======================== LOCATION ======================== */
.distance-list {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.distance-list li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.distance-list .dist {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.distance-list .poi {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--ink);
}
.distance-list .km {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 520px) {
  .distance-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.address {
  font-style: normal;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.5;
}
.col-map {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-soft);
}
.map-svg,
.google-map {
  width: 100%;
  min-height: 430px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--paper);
}
.google-map {
  display: block;
  aspect-ratio: 1 / 1;
}

/* ======================== BOOK / CTA ======================== */
.section-book {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(31,111,123,0.25), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(14,58,74,0.5), transparent 60%),
    linear-gradient(180deg, #0e3a4a 0%, #0a2a36 100%);
  color: var(--cream);
}
.section-book .eyebrow { color: rgba(246,241,230,0.7); }
.book-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(540px, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.book-copy {
  max-width: 760px;
}
@media (max-width: 1040px) {
  .book-card { grid-template-columns: 1fr; }
}
.book-points {
  list-style: none;
  margin: 18px 0 18px;
  padding: 0;
  color: rgba(246,241,230,0.92);
}
.book-points li {
  padding: 9px 0 9px 22px;
  position: relative;
  font-size: 15px;
}
.book-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 10px; height: 1px;
  background: rgba(246,241,230,0.7);
}

/* Form card */
.book-form-wrap { position: relative; }
.form-card {
  background: var(--cream);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 30px 60px -28px rgba(0,0,0,0.5);
}
.form-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.form-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.bentral-embed {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  display: block;
  overflow: visible;
}
.bentral-embed iframe,
.bentral-embed > div,
.bentral-embed form,
.bentral-embed table {
  width: 100%;
  max-width: 100%;
}
.bentral-embed iframe {
  min-height: 680px;
  border: 0;
  display: block;
}
.bentral-embed > * {
  box-sizing: border-box;
  max-width: 100% !important;
  width: 100% !important;
}
.bentral-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
  gap: 8px;
}
.placeholder-ico {
  width: 38px; height: 38px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  margin-bottom: 8px;
}
.placeholder-title {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--ink);
  margin: 0;
}
.placeholder-body {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 14px;
  max-width: 38ch;
}
.form-foot {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ======================== FOOTER ======================== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 56px;
  color: var(--text-muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
}
.foot-meta { text-align: right; }
.foot-meta p { margin: 2px 0; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
@media (max-width: 560px) {
  .footer-row { align-items: flex-start; }
  .foot-meta { text-align: left; }
}

/* ======================== FOCUS / A11Y ======================== */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
