/* ================================
   WSPÓLNY STYL CAŁEJ STRONY
   ================================ */

/**********************
    TYPOGRAPHY SYSTEM
**********************/
/* Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
Font weights:
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700
Line heights:
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Letter spacing:
-0.5px
0.75px
Colors:
Accent: #361e1e
Grey: #555
Shadows:
0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
Border radius:
Default: 9px
Medium: 11px
Whitespace:
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
Fonts considered:
Baskervville
Cormorant Garamond
Lato
*/

/**********************
    RESET & BASE
**********************/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
	width: 100%;
}

body {
	font-family: 'Gruppo', sans-serif;
	line-height: 1;
	font-weight: 400;
	font-size: 1.6rem;
	color: #555;
	background-color: #777;
	width: 100%;
	overflow-x: hidden;
}

/* Jasne tło wszystkich podstron */
body.subpage {
	background-color: #eae5e5;
}

/**********************
     UNIWERSALNE
**********************/
.container {
	max-width: 120rem;
	margin: 0 auto;
	padding: 0 3.2rem;
}

.grid {
	display: grid;
	column-gap: 6.4rem;
	row-gap: 9.6rem;
}

.grid--2-cols {
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
}

.grid--3-cols {
	grid-template-columns: repeat(3, 1fr);
}

.margin-bottom-md {
	margin-bottom: 4.8rem !important;
}

.heading-secondary {
	margin-bottom: 3.2rem;
	font-size: 3.6rem;
	text-transform: uppercase;
	letter-spacing: 2.3px;
}

.heading-third {
	margin-bottom: 1rem;
	font-size: 2.4rem;
	font-weight: 400;
}

.subpage .heading-third {
	margin-bottom: 2rem;
}

.heading {
	text-align: center;
	margin-bottom: 6.4rem;
}

.link:link,
.link:visited {
	display: inline-block;
	color: #555;
	padding-bottom: 2px;
	text-decoration: none;
	transition: all 0.3s;
	border-bottom: 1px solid transparent;
}

.link:hover,
.link:active {
	color: #361e1e;
	border-bottom: 1px solid #361e1e;
}

/**********************
    HEADER SECTION
**********************/
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2.4rem 6.4rem;
	transition: all 0.4s ease-in-out;
	background-color: transparent;
}

/* 1. WYGLĄD PO PRZEWINIĘCIU (STICKY) */
.header.sticky {
	background-color: rgba(54, 30, 30, 0.25) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 1.2rem 6.4rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 2. LOGO */
.logo {
	height: 7.4rem;
	padding: 0 2rem;
	display: block;
	transition: all 0.3s ease;
}

.header.sticky .logo {
	height: 6.4rem;
	filter: brightness(0) invert(1);
}

/**********************
     NAVIGATION
**********************/
.main-nav-list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6rem;
	padding: 0 4rem;
	white-space: nowrap;
	text-transform: uppercase;
}

/* STYLE BAZOWE LINKÓW */
.main-nav-link,
.dropdown-link {
	text-decoration: none;
	transition: all 0.3s ease;
}

/* Jasne linki na stronie głównej */
.main-nav-link:link,
.main-nav-link:visited {
	color: #eae5e5;
	font-weight: 400;
	font-size: 2.2rem;
	letter-spacing: 1.8px;
}

/* Ciemne linki na jasnych podstronach */
.subpage .main-nav-link:link,
.subpage .main-nav-link:visited {
	color: #555;
	font-weight: 400;
	font-size: 2.2rem;
	letter-spacing: 1.8px;
}

/* STICKY — linki są jasne na każdej stronie */
.header.sticky .main-nav-link:link,
.header.sticky .main-nav-link:visited,
.header.sticky .dropdown-link:link,
.header.sticky .dropdown-link:visited {
	color: #eae5e5 !important;
}

/* EFEKT HOVER (BORDOWY) */
.main-nav-link:hover,
.main-nav-link:active,
.dropdown:hover > .main-nav-link,
.dropdown:hover .dropdown-link,
.dropdown-link:hover,
.header.sticky .main-nav-link:hover,
.header.sticky .dropdown:hover > .main-nav-link,
.header.sticky .dropdown:hover .dropdown-link {
	color: #361e1e !important;
	background-color: transparent !important;
}

.header.sticky .dropdown-link:hover {
	opacity: 1;
	transform: translateX(-5px);
}

.dropdown {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	list-style: none;
	padding-top: 1rem;
	width: 18rem;
	white-space: normal;
	text-align: right;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.4s ease;
}

.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-link:link,
.dropdown-link:visited {
	display: block;
	padding: 0.6rem 0;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	line-height: 1.3;
	font-weight: 300;
}

.subpage .dropdown-link:link,
.subpage .dropdown-link:visited {
	color: #555;
}

.dropdown-link:hover {
	transform: translateX(-5px);
}

.dropdown::after {
	content: '';
	position: absolute;
	top: 100%;
	right: 0;
	width: 100%;
	height: 2.5rem;
}

/* Przycisk hamburgera - domyślnie ukryty */
.btn-mobile-nav {
	border: none;
	background: none;
	cursor: pointer;
	display: none;
	z-index: 1000;
}

.icon-mobile-nav {
	font-size: 4.8rem;
	color: #eae5e5;
}

.icon-mobile-nav[name='close-outline'] {
	display: none;
}

#kontakt {
	scroll-margin-top: 100px;
}

/**********************
    HERO SECTION
**********************/
.section-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	background-image: url('../img/hero.jpg');
	background-size: cover;
	background-position: center;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	color: #eae5e5;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 50%;
	text-align: right;
	margin-right: 10rem;
}

.hero-content h1 {
	font-size: 6.2rem;
	text-transform: uppercase;
	letter-spacing: 2.3px;
	line-height: 1.1;
}

.hero-content h2 {
	font-size: 3.6rem;
	text-transform: uppercase;
	letter-spacing: 2.3px;
	font-weight: 400;
}

/* ================================
   HOMEPAGE — O MNIE
   ================================ */

.section-about {
	padding: 9.6rem 0;
	background-color: #eae5e5;
}

.about-card {
	display: grid;
	grid-template-columns: 2fr 1fr;
	height: 60rem;
	overflow: hidden;
	background-color: #f6f4f4;
	box-shadow: 0 2.4rem 3rem rgba(0, 0, 0, 0.1);
	border-radius: 3px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.3s ease;
}

.about-card:hover {
	box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.14);
}

.about-card-text {
	padding: 6.4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.about-card-image {
	height: 100%;
	overflow: hidden;
}

.about-card-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	filter: grayscale(0.05) brightness(0.95);
	transition: transform 0.5s ease;
}

.about-card:hover .about-card-image img {
	transform: scale(1.02);
}

.about-card .about-label {
	display: flex;
	align-items: center;
	gap: 2rem;
	font-family: 'Gruppo', sans-serif;
	font-size: 1.5rem;
	letter-spacing: 0.5rem;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 3.5rem;
}

.about-card .about-label-line {
	display: block;
	width: 7rem;
	height: 1px;
	background-color: #999;
}

.about-card .about-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 5.6rem;
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: -0.1rem;
	color: #333;
	margin: 0 0 3.8rem;
	max-width: 58rem;
}

.about-card .about-description {
	max-width: 53rem;
}

.about-card .about-description p {
	font-family: 'Gruppo', sans-serif;
	font-size: 1.8rem;
	line-height: 1.55;
	letter-spacing: 0;
	color: #555;
	margin: 0 0 2.4rem;
}

.about-card .about-description p:last-of-type {
	margin-bottom: 0;
}

.about-card-link {
	display: inline-block;
	margin-top: 2.4rem;
	font-family: 'Gruppo', sans-serif;
	font-size: 1.5rem;
	color: #555;
	border-bottom: 1px solid #999;
	padding-bottom: 0.3rem;
	transition: all 0.3s ease;
}

.about-card:hover .about-card-link {
	color: #361e1e;
	border-color: #361e1e;
}

/**********************
    SERVICES SECTION
**********************/
.section-services {
	padding: 0 0 6.4rem;
	background-color: #eae5e5;
}

.services-title {
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.75px;
	line-height: 1.2;
	min-height: 5.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2.4rem;
}

.services-box {
	display: flex;
	flex-direction: column;
	box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.1);
	border-radius: 3px;
	/* Usunięto sztywne height: 40rem; */
	min-height: 36rem;
	padding: 4rem 3.2rem;
	text-align: center;
	background-color: #f6f4f4;
	transition: transform 0.3s;
}

.services-box:hover {
	transform: scale(1.05);
}

.service-p {
	font-size: 1.8rem;
	color: #333;
	line-height: 1.5;
	letter-spacing: -0.5px;
	max-width: 30ch;
	margin: 0 auto 2.4rem;
	flex-grow: 1;
}

/**********************
    CTA SECTION
**********************/
.section-cta {
	padding: 6.4rem 0;
	background-color: #361e1e;
	color: #eae5e5;
	line-height: 1.2;
}

.subpage .section-cta {
	padding: 9.6rem 0 9.6rem;
}

.grid--cta {
	display: grid;
	grid-template-columns: 0.8fr 2.2fr;
	column-gap: 6rem;
	align-items: center;
}

.contact-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	height: 100%;
}

.mb {
	margin-bottom: 2rem !important;
}

.cta-social-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-top: 1.8rem;
}

.cta-social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	line-height: 0;
	transition: transform 0.3s;
}

.cta-social-icons a:hover {
	transform: scale(1.1);
}

.cta-social-icons svg {
	width: 28px;
	height: 28px;
	display: block;
	fill: #eae5e5;
}

.instagram-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8rem;
}

.instagram-grid img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 3px;
	transition: transform 0.3s, opacity 0.3s;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.instagram-grid a:hover img {
	transform: scale(1.05);
	opacity: 0.85;
}

/* Oryginalny duplikat tej reguły był w style.css — efekt pozostaje zachowany. */
.insta-1 {
	object-position: center 25%;
}

.insta-2 {
	object-position: center 18%;
}

.insta-3 {
	object-position: 40% 30%;
}

/* Oryginalne, bardziej szczegółowe wartości dla homepage */
.contact-box .mb {
	margin-bottom: 1.5rem !important;
}

.contact-box .cta-social-icons {
	margin-top: 1.2rem;
}

/**********************
    FOOTER
**********************/
.footer {
	padding: 1rem 0;
	background-color: #eae5e5;
	color: #555;
	border-top: 1px solid rgba(54, 30, 30, 0.15);
}

.footer .grid {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 5rem;
}

.footer-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 10rem;
}

.footer-logo img {
	max-width: 110px;
}

.footer-list {
	list-style: none;
	display: flex;
	gap: 3.2rem;
	white-space: nowrap;
	margin-left: 1rem;
}

.footer-link:link,
.footer-link:visited {
	text-decoration: none;
	color: #555;
	font-size: 1.6rem;
	letter-spacing: 1.2px;
	transition: color 0.3s;
	text-transform: uppercase;
}

.footer-link:hover {
	color: #361e1e;
}

.footer-social {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 2rem;
}

.footer-copyright {
	padding-top: 2.4rem;
	text-align: center;
}

.footer-text {
	font-size: 1.6rem;
	margin-bottom: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.subpage .footer-text {
	margin-bottom: 1rem;
	letter-spacing: 2px;
}

.copyright-text {
	font-size: 1.4rem;
	color: #777;
	margin-bottom: 0.4rem;
}

.copyright-design {
	font-size: 1.2rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 1px;
}
