/* empireofbeauty.co.uk – statyczna strona (zastępuje motyw Porto) */

@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-latin-ext.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-latin.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --dark: #1d2127;
  --text: #777;
  --heading: #222529;
  --light: #e9ecef;
  --accent: #f2c500;
  --wrap: 1170px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font: 14px/1.75 "Open Sans", Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--dark); }
h1, h2, h3 { color: var(--heading); line-height: 1.25; }
strong { color: #555; }
a[href^="tel:"] { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* --- nagłówek --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(29, 33, 39, .96); transition: background .3s;
}
.home .site-header { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }
.home .site-header.scrolled { background: rgba(29, 33, 39, .96); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 30px; }
.logo img { display: block; height: 44px; width: auto; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav li { position: relative; }
.nav a, .nav .sub-toggle {
  display: block; padding: 8px 13px; color: #fff; text-decoration: none; background: none; border: 0;
  font: 600 13px/1.4 "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: .3px; cursor: pointer;
}
.nav a[aria-current="page"] span, .nav a:hover span, .nav .sub-toggle:hover span { border-bottom: 2px solid #fff; }
.nav .sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--dark); box-shadow: 0 6px 18px rgba(0,0,0,.25); display: none;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { text-transform: none; font-weight: 400; font-size: 14px; padding: 8px 18px; }
.nav .sub a:hover { background: rgba(255,255,255,.08); }
.nav .lang img { display: block; width: 24px; height: auto; }
.nav .fb svg { display: block; width: 14px; height: 14px; fill: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; background: none; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* --- slider na stronie głównej --- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #000; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero .slide.active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .caption {
  position: absolute; left: 25px; bottom: 40px; margin: 0; color: #fff;
  font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero .progress { position: absolute; left: 0; bottom: 0; height: 8px; background: var(--accent); width: 0; }
.hero .progress.run { width: 100%; transition: width 6s linear; }
.hero button.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.3); color: #fff; font-size: 22px; cursor: pointer;
}
.hero .prev { left: 20px; } .hero .next { right: 20px; }
.hero button.arrow:hover { background: rgba(0,0,0,.6); }

/* --- sekcje strony głównej --- */
.intro { text-align: center; padding: 60px 20px 20px; }
.intro h1 { font-size: 30px; margin: 0 0 12px; }
.intro p { max-width: 760px; margin: 0 auto 10px; font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 20px 60px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: #000; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .5s; opacity: .85; }
.tile:hover img { transform: scale(1.06); opacity: .7; }
.tile.top img { object-position: center 15%; }  /* zdjęcie z napisem cenowym na dole */
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: #fff; font-weight: 700; font-size: 18px; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* --- baner tytułu podstron --- */
.page-title {
  padding: calc(var(--header-h) + 22px) 20px 38px; text-align: center;
  background: var(--dark) url("img/custom-header-bg.jpg") center / cover no-repeat;
}
.page-title h1 { margin: 0; color: #fff; font-size: 32px; font-weight: 700; letter-spacing: -.5px; }

/* --- układ podstron usług --- */
.layout { display: grid; grid-template-columns: 350px 1fr; gap: 30px; padding-top: 55px; padding-bottom: 55px; }
.content p { margin: 0 0 1.4em; }
.content ul { margin: 0 0 1.4em; padding-left: 1.4em; }
.content img.left { float: left; width: 300px; margin: 5px 24px 12px 0; }
.content img.right { float: right; width: 300px; margin: 5px 0 12px 24px; }
.content::after { content: ""; display: table; clear: both; }

.sidebar .carousel { position: relative; margin-bottom: 30px; }
.carousel .track { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #eee; }
.carousel .track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.carousel .track img.active { opacity: 1; }
.carousel .dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.carousel .dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #333; background: none; padding: 0; cursor: pointer; }
.carousel .dots button.active { background: #333; }

.info h2 { margin: 0; font-size: 28px; }
.info .tagline { margin: 0 0 22px; font-weight: 700; color: var(--heading); font-size: 13px; }
.info ul { list-style: none; margin: 0; padding: 0; }
.info li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--heading); font-size: 18px; }
.info li a { color: var(--heading); text-decoration: none; }
.info li a:hover { text-decoration: underline; }
.info li small { display: block; font-size: 13px; color: var(--text); margin-top: 6px; }
.info svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; fill: var(--heading); }
.hours { border-top: 1px solid #e5e5e5; margin-top: 18px; padding-top: 22px; }
.hours h2 { margin: 0 0 8px; font-size: 26px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours td { padding: 1px 0; }
.hours td + td { text-align: center; }
.partner { display: block; border-top: 1px solid #e5e5e5; margin-top: 22px; padding-top: 22px; text-align: center; }
.partner img { width: 300px; }

/* --- galeria --- */
.gallery-intro { font-size: 18px; font-weight: 700; color: var(--heading); margin: 0 0 35px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; padding-bottom: 60px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .close { top: 15px; right: 15px; }
.lightbox .lb-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 15px; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* --- kontakt --- */
.contact-intro { text-align: center; padding: 60px 20px 40px; }
.contact-intro h2 { font-weight: 400; font-size: 30px; margin: 0 0 12px; }
.contact-intro p { margin: 0 0 1em; }
.map { display: block; width: 100%; height: 420px; border: 0; }

/* --- stopka --- */
.footer-info { background: var(--dark); color: #aaa; padding: 50px 0; text-align: center; }
.footer-info .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-info h3 { color: #fff; font-weight: 400; font-size: 20px; margin: 0 0 12px; }
.footer-info p { margin: 0; }
.footer-info a { color: #ccc; text-decoration: none; }
.footer-info a:hover { color: #fff; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.strip img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.footer-bottom { background: var(--light); text-align: center; font-size: 12px; padding: 25px 20px; }
.footer-bottom strong { color: #555; }

/* --- tablet / telefon --- */
@media (max-width: 1100px) {
  .site-header .bar { padding: 0 16px; }
  .nav a, .nav .sub-toggle { padding: 8px 8px; font-size: 12px; }
}
@media (max-width: 991px) {
  :root { --header-h: 66px; }
  .logo img { height: 38px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.open { display: block; }
  .home .site-header { background: rgba(29, 33, 39, .96); }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .nav a, .nav .sub-toggle { padding: 13px 22px; font-size: 14px; width: 100%; text-align: left; }
  .nav .sub { position: static; display: block; box-shadow: none; padding: 0 0 0 14px; }
  .nav .sub-toggle { display: none; }
  .nav .lang, .nav .fb { display: inline-block; }
  .layout { grid-template-columns: 1fr; padding-top: 35px; }
  .layout .content { order: -1; }
  .sidebar { max-width: 420px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .content img.left, .content img.right { float: none; display: block; width: 100%; margin: 0 0 18px; }
  .tiles { grid-template-columns: 1fr; }
  .footer-info .cols { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 26px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .map { height: 320px; }
  .hero .caption { left: 16px; bottom: 30px; }
}
