@import url("https://fonts.googleapis.com/css2?family=Cormorant+Unicase:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

@font-face {
	font-family: Captain Nelson;
	src: url("/fonts/Captain-Nelson-Serif-Printed.otf");
}

:root {
	--black: #222;
	--white: #fff;

	--fs-300: 0.875rem;
	--fs-400: 1.125rem;
	--fs-500: 1.25rem;
	--fs-600: 1.5rem;
	--fs-700: 2rem;
	--fs-900: 2.5rem;

	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 4rem;
	--sp-8: 8rem;
	--sp-9: 16rem;
	--sp-10: 32rem;

	--font-title: "Captain Nelson", serif;
	--font-text: "Libre Baskerville", serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	background-color: var(--black);
	color: var(--white);
	overflow-x: hidden;
	font-family: var(--font-text);
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-title);
	font-weight: 400;
}

h1, h2, h3 {
	margin: var(--sp-7) 0 var(--sp-4);
	line-height: 100%;
}

h1 {
	margin-top: var(--sp-8);
}

h2 {
	font-size: var(--fs-600);
}

p {
	margin-bottom: var(--sp-4);
	line-height: 175%;
	opacity: 0.8;
}

a {
	text-decoration: none;
	color: var(--white);
}

ul {
	list-style-type: none;
}

ol li {
	line-height: 175%;
	opacity: 0.8;
}

img {
	display: block;
	max-width: 100%;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

header .page-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.page-wrapper {
	max-width: 1280px;
	width: calc(100% - 40px);
	margin: 0 auto;
}

.cta {
	display: inline-block;
	padding: var(--sp-3) var(--sp-5);
	margin: var(--sp-4) 0;
	border: 1px solid var(--white);
	transition: 0.2s all ease-in;
}

.cta:hover {
	background-color: var(--white);
	color: var(--black);
}

.header-logo {
	width: 48px;
}

nav {
	padding: var(--sp-4) 0;
}

#hamburger {
	display: flex;
	flex-direction: column;
	row-gap: var(--sp-2);
	align-items: flex-end;
	z-index: 10;
	cursor: pointer;
	padding: var(--sp-2);
}

.hamburger-line {
	height: 2px;
	width: 32px;
	background: var(--white);
	transition: 0.2s all ease-in;
}

.hamburger-line.bottom {
	width: 24px;
}

#hamburger.open .hamburger-line.top {
	transform: rotate(45deg) translateY(8px) translateX(8px);
}

#hamburger.open .hamburger-line.middle {
	transform: rotate(-45deg) translateY(0px);
}

#hamburger.open .hamburger-line.bottom {
	transform: translateX(100%);
	opacity: 0;
}

.nav-overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--black);
	opacity: 0;
	pointer-events: none;
	transition: 0.2s all ease-in;
	display: flex;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
	padding-top: var(--sp-8);
	font-family: var(--font-title);
	z-index: -1;
}

.nav-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.nav-overlay ul {
	display: flex;
	flex-direction: column;
	row-gap: var(--sp-5);
	font-size: var(--fs-600);
}

.nav-overlay a {
	opacity: 0.8;
	transition: 0.2s all ease-in;
}

.nav-overlay a:hover {
	opacity: 1;
}

.nav-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.nav-bg-icons img {
    position: absolute;
    opacity: 0.05;
    filter: brightness(0) invert(1);
}

.icon-1 {
    width: 300px;
    top: -50px;
    right: -50px;
    transform: rotate(15deg);
}

.icon-2 {
    width: 150px;
    bottom: 10%;
    left: 5%;
    transform: rotate(-10deg);
}

.icon-3 {
    width: 200px;
    top: 40%;
    right: 15%;
    opacity: 0.03;
}


.about-video {
	width: calc(100% + 40px);
	margin-left: -20px;
}

.about-flex p {
	text-align: left;
}

#usluge {
	position: relative;
}

.branch-img {
	position: absolute;
	left: 0;
	top: -50%;
	bottom: 0;
	z-index: -10;
}

footer {
	background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.branch-img-flipped {
	transform: scaleX(-1);
	right: -20px;
	left: unset;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	text-align: left;
	padding-top: 32px;
	line-height: 1.75;
}

.footer-grid>:nth-child(3) {
	justify-self: flex-end;
}

.footer-logo {
	width: 128px;
}

footer p {
	opacity: 0.85;
	font-size: var(--fs-300);
}

.social-media {
	display: flex;
	flex-direction: row;
	justify-content: center;
	column-gap: 32px;
}

.social-media img {
	width: 32px;
}

.copyright {
	text-align: center;
	padding: 32px;
}



#chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #4d5d58;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: rgba(0,0,0,.2);
}

#chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  height: 460px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
	background: #0f172a;
  color: #f8fafc;
}

/* ===== HEADER ===== */
#chat-header {
  padding: 12px;
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-widget.light #chat-header {
  background: #f1f5f9;
}
#chat-header button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
}

/* ===== MESSAGES ===== */
#chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.message {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 80%;
}

.user {
  margin-left: auto;
  background: #2563eb;
  color: white;
}
.ai {
  background: #1e293b;
}
#chat-widget.light .ai {
  background: #e5e7eb;
}

/* Typing dots */
.typing::after {
  content: "⠋";
  animation: dots 1s steps(5, end) infinite;
}
@keyframes dots {
  0% { content: "⠋"; }
  25% { content: "⠙"; }
  50% { content: "⠹"; }
  75% { content: "⠸"; }
}

/* ===== INPUT ===== */
#chat-input {
  display: flex;
  border-top: 1px solid #334155;
}
#chat-widget.light #chat-input {
  border-top: 1px solid #ddd;
}
#chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}
#chat-input button {
  padding: 10px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

/* ===== GDPR ===== */
#gdpr {
  padding: 10px;
  font-size: 12px;
  text-align: center;
  display: none;
}
#gdpr button {
  margin-top: 6px;
  padding: 4px 8px;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  #chat-widget {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

