/*
Theme Name: Patigo
Theme URI: https://www.patigo.pl
Author: Patigo - Paweł Goroń
Author URI: https://www.patigo.pl
Description: Motyw WordPress dla Agencji Artystyczno-Eventowej Patigo. Kompleksowa organizacja eventów, pikników, spektakli teatralnych oraz zaplecza technicznego.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patigo
Tags: one-page, custom-logo, custom-menu, featured-images
*/

/* CUSTOM TOKENS & PROPERTIES */
:root {
  --primary: #E30613;
  --primary-rgb: 227, 6, 19;
  --dark: #111827;
  --dark-light: #1E293B;
  --gray: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* CONTAINER */
.container {
  max-width: 1320px;
  margin: auto;
  padding: 0 24px;
}

/* SECTIONS */
section {
  padding: 80px 0;
}

/* TYPOGRAPHY */
h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--dark);
}

p {
  margin-bottom: 20px;
  color: var(--gray);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #c5050f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* HEADER & FLOATING NAVIGATION */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
  z-index: 999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.header-top-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 0;
  font-size: 13px;
}

.header-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
}

.top-contact-item i {
  color: var(--primary);
  font-size: 13px;
}

.top-contact-item a {
  font-weight: 500;
  color: var(--dark-light);
}

.top-contact-item a:hover {
  color: var(--primary);
}

.header-socials {
  display: flex;
  gap: 10px;
}

.header-socials a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--dark-light);
  font-size: 12px;
  transition: all 0.2s;
}

.header-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.header-main-row {
  padding: 10px 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img,
.custom-logo {
  height: 98px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s ease;
  display: block;
}

.custom-logo-link {
  display: block;
}

/* HAMBURGER TOGGLE BUTTON */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  list-style: none;
  position: relative;
}

.nav-menu > li > a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-menu > li > a:hover {
  color: var(--primary);
}

/* Underline animation on hover */
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
  width: 100%;
}

/* ACTIVE / CURRENT PAGE STATE */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li > a.active-scroll {
  color: var(--primary);
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after,
.nav-menu > li.current-menu-ancestor > a::after,
.nav-menu > li > a.active-scroll::after {
  width: 100%;
}

/* DROPDOWN / SUBMENU */
.nav-menu > li > .sub-menu {
  position: absolute;
  top: 100%;
  left: 24px;
  min-width: 220px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  list-style: none;
}

.sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sub-menu li a:hover {
  color: var(--primary);
  background: rgba(227, 6, 19, 0.04);
  border-left-color: var(--primary);
}

.sub-menu li.current-menu-item a,
.sub-menu li.current_page_item a {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(227, 6, 19, 0.04);
}

/* Dropdown arrow for items with children (desktop) */
.nav-menu > li.menu-item-has-children > a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* MENU ICON CLASSES — add class in WP Menu editor (e.g. menu-icon-home) */
.menu-icon-home > a::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f015";
  margin-right: 6px;
}

.menu-icon-star > a::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f005";
  margin-right: 6px;
}

.menu-icon-envelope > a::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f0e0";
  margin-right: 6px;
}

.menu-icon-phone > a::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f095";
  margin-right: 6px;
}

/* HERO */
.hero {
  position: relative;
  padding: 140px 0;
  background: #0f172a;
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.hero-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.hero-content-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-content-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hero h1,
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 54px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(15, 23, 42, 0.7);
}

.hero p,
.hero-text {
  font-size: 19px;
  margin-bottom: 40px;
  color: #f3f4f6;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.7);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  margin: 0 8px 12px 8px;
}

/* Styled highlighting for the word "WOW" */
.hero-wow {
  color: var(--primary);
  display: inline-block;
  font-weight: 900;
  position: relative;
  text-shadow: 0 0 15px rgba(227, 6, 19, 0.4);
}

/* SECTION TAG PILL */
.section-tag-pill {
  display: inline-block;
  background: #ffe4e6;
  color: #e11d48;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* INTERACTIVE TOGGLE CONTAINER */
.section-intro-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 40px;
}

.section-intro-left {
  flex: 1.2;
}

.section-tag-pill-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 6, 19, 0.06);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(227, 6, 19, 0.12);
}

.dot-blink {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: blink-animation 1.5s infinite ease-in-out;
}

@keyframes blink-animation {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.section-title-premium {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin: 0;
}

.section-intro-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-desc-premium {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  text-align: left;
}

@media (max-width: 768px) {
  .section-intro-split {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }
  .section-title-premium {
    font-size: 32px;
  }
}

/* SERVICES SECTION */
.services-section {
  background: #f3f4f6;
}

/* SERVICES - Accordion panel grid */
.services-accordion-c {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-top: 20px;
}

.accordion-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.accordion-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.25) 60%, transparent 100%);
  transition: all 0.4s ease;
}

.accordion-content {
  position: absolute;
  inset: 0;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  z-index: 2;
  transition: padding 0.3s ease;
}

.accordion-num {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 5px;
  transition: all 0.3s;
}

.accordion-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: normal;
  line-height: 1.3;
  transition: font-size 0.3s ease;
}

.accordion-desc {
  font-size: 14px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease 0.1s;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  line-height: 1.5;
}

.accordion-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.2s;
  align-self: flex-start;
}

/* Accordion hover */
.accordion-panel:hover {
  flex: 4;
  box-shadow: inset 0 -6px 0 0 var(--primary), 0 12px 24px -10px rgba(227, 6, 19, 0.3);
}

.accordion-panel:hover::before {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 70%, transparent 100%);
}

.accordion-panel:hover .accordion-num {
  color: var(--primary);
  opacity: 1;
  text-shadow: 0 0 10px rgba(227, 6, 19, 0.4);
}

.accordion-panel:hover .accordion-content {
  padding: 30px 24px;
}

.accordion-panel:hover .accordion-title {
  font-size: 22px;
}

.accordion-panel:hover .accordion-desc {
  opacity: 1;
  max-height: 120px;
}

.accordion-panel:hover .accordion-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion Responsive */
@media (max-width: 900px) {
  .services-accordion-c {
    flex-direction: column;
    height: auto;
  }
  .accordion-panel {
    min-height: 150px;
    flex: none;
    width: 100%;
  }
  .accordion-panel:hover {
    flex: none;
  }
  .accordion-desc, .accordion-btn {
    opacity: 1;
    max-height: none;
    transform: none;
  }
}

/* WHY US SECTION */
.why-us-section {
  background: var(--white);
}

/* WARIANT B (Layout inspired by internationalevent.pl) */
.why-grid-b {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.why-col-b {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 33%;
}

.why-col-b.first {
  align-items: flex-end;
}

.why-col-b.sec {
  align-items: flex-start;
}

.why-item-b {
  display: flex;
  align-items: center;
  gap: 16px;
}

.why-col-b.first .why-item-b {
  flex-direction: row;
}

.why-col-b.sec .why-item-b {
  flex-direction: row-reverse;
}

.why-item-text-b {
  color: #4b5563;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  width: 250px;
}

.why-col-b.first .why-item-text-b {
  text-align: right;
}

.why-col-b.sec .why-item-text-b {
  text-align: left;
}

.why-item-icon-b {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
}

/* Colorful icon variations */
.icon-red { background: #E30613; }
.icon-orange { background: #FF6E31; }
.icon-pink { background: #E3007B; }
.icon-gold { background: #F0D026; }
.icon-blue { background: #436EB3; }
.icon-purple { background: #A43897; }

.why-center-b {
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.why-circle-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.08) 0%, transparent 70%);
  position: absolute;
}

.why-logo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 4px solid #f3f4f6;
  padding: 20px;
}

.why-logo-wrap img {
  width: 100%;
  object-fit: contain;
}

/* REALIZACJE SECTION */
.realizacje-section {
  background: #f3f4f6;
}

.realizacje-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.realizacje-header-left {
  text-align: left;
}

.carousel-controls-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-control-btn {
  background: var(--white);
  border: 1px solid #e2e8f0;
  color: #1e293b;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.carousel-control-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.real-text {
  max-width: 800px;
  margin-bottom: 40px;
  color: #64748b;
  text-align: left;
  line-height: 1.7;
  font-size: 16px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.real-card {
  flex: 0 0 350px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.real-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.real-image {
  position: relative;
  overflow: hidden;
  height: 230px;
}

.real-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.real-card:hover .real-image img {
  transform: scale(1.06);
}

.real-overlay {
  position: absolute;
  inset: 0;
  background: rgba(227, 6, 19, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.real-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transform: translateY(10px);
  transition: 0.3s;
}

.real-card:hover .real-overlay {
  opacity: 1;
}

.real-card:hover .real-overlay span {
  transform: translateY(0);
}

.real-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.real-body h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
  line-height: 1.4;
}

.real-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 480px) {
  .real-card {
    flex: 0 0 280px;
  }
  .real-image {
    height: 180px;
  }
}

/* REFERENCES SECTION */
.references-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.test-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.03);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
}

.carousel .test-card {
  flex: 0 0 360px;
}

@media (max-width: 480px) {
  .carousel .test-card {
    flex: 0 0 290px;
    padding: 24px;
  }
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.test-content {
  margin-bottom: 24px;
}

.test-stars {
  color: #FBBF24;
  margin-bottom: 16px;
  font-size: 14px;
}

.test-content p {
  font-style: italic;
  color: var(--gray);
  font-size: 15px;
}

.test-ref-link {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.test-ref-img {
  width: 50px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  position: relative;
}

.test-ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-ref-details h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.test-ref-details p {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* ABOUT SECTION */
.about {
  padding: 80px 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  max-width: 600px;
  line-height: 1.7;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* VISUALLY SEPARATED CONTACT SECTION */
.contact-section-separated {
  background: #f8fafc;
  padding: 80px 0;
  border-top: 1px solid #e2e8f0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 24px;
  color: var(--gray);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 16px;
}

.contact-item a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

.contact-social {
  margin-top: 28px;
}

.contact-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  margin-right: 12px;
  color: var(--dark);
}

.contact-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Floating White Contact Form Card */
.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
}

.contact-form-card form {
  display: grid;
  gap: 16px;
}

.contact-form-card input,
.contact-form-card textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
}

.checkbox input {
  margin-top: 4px;
}

/* Contact form messages */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
}

.footer-logo {
  height: 70px;
  filter: brightness(0) invert(1);
  margin-bottom: 15px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 15px;
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: 0.3s;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .why-grid-b {
    flex-wrap: wrap;
  }
  .why-col-b {
    width: 45%;
  }
  .why-center-b {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-top-bar {
    display: none;
  }
  .header-main-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .logo img,
  .custom-logo {
    height: 70px;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Mobile nav: slide-down drawer */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
    z-index: 999;
    padding: 16px 0;
  }

  .nav.nav-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-menu > li > a {
    margin-left: 0;
    padding: 12px 24px;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-menu > li:last-child > a {
    border-bottom: none;
  }

  .nav-menu > li > a::after {
    display: none;
  }

  .nav-menu > li.current-menu-item > a,
  .nav-menu > li.current_page_item > a {
    color: var(--primary);
    background: rgba(227, 6, 19, 0.04);
    border-left: 3px solid var(--primary);
  }

  /* Mobile dropdown */
  .nav-menu > li > .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: #f8fafc;
    display: none;
  }

  .nav-menu > li.sub-menu-open > .sub-menu {
    display: block;
  }

  .sub-menu li a {
    padding: 10px 24px 10px 40px;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
  }

  .sub-menu li:last-child a {
    border-bottom: none;
  }

  /* Mobile dropdown arrow */
  .nav-menu > li.menu-item-has-children > a::before {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .nav-menu > li.menu-item-has-children > a {
    position: relative;
    padding-right: 48px;
  }

  .nav-menu > li.sub-menu-open.menu-item-has-children > a::before {
    transform: translateY(-50%) rotate(180deg);
  }

  .why-col-b {
    width: 100%;
  }
  .why-col-b.first .why-item-b,
  .why-col-b.sec .why-item-b {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    align-items: center;
  }
  .why-item-text-b,
  .why-col-b.first .why-item-text-b,
  .why-col-b.sec .why-item-text-b {
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
}

/* WordPress specific overrides */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* WP entry content styling */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* 404 page */
.error-404-content {
  text-align: center;
  padding: 120px 0;
}

.error-404-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 120px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   SUBPAGE & SINGLE ITEM STYLES (PATIGO DESIGN SYSTEM)
   ═══════════════════════════════════════════════ */

/* Subpage Hero */
.subpage-hero {
  position: relative;
  background: #0f172a;
  color: var(--white);
  padding: 100px 0 60px;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(227, 6, 19, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.subpage-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.subpage-breadcrumbs {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.subpage-breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.subpage-breadcrumbs a:hover {
  color: var(--primary);
}

.subpage-title {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.subpage-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.subpage-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subpage-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(227, 6, 19, 0.2);
  color: #ff4d5a;
  border: 1px solid rgba(227, 6, 19, 0.4);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subpage Main Layout */
.subpage-body {
  padding: 60px 0;
  background: #f8fafc;
}

.subpage-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.subpage-layout-full {
  max-width: 960px;
  margin: 0 auto;
}

.subpage-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .subpage-card {
    padding: 24px;
  }
  .subpage-title {
    font-size: 30px;
  }
  .subpage-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Rich Content Styling */
.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #0f172a;
}

.entry-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #0f172a;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 24px 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: #fff5f5;
  padding: 20px 28px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-style: italic;
  font-size: 18px;
  color: #1e293b;
}

.entry-content img {
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

/* Subpage Sidebar Widgets & CTA */
.subpage-sidebar-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

.sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
  position: relative;
  padding-bottom: 12px;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.sidebar-quick-contact {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-quick-contact i.bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 120px;
  opacity: 0.08;
  color: #fff;
}

/* Service Sub-module Galleries */
.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 32px;
}

.service-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 150px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.service-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  margin: 0;
}

.service-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 20px;
}

.service-gallery-item:hover img {
  transform: scale(1.08);
}

.service-gallery-item:hover .service-gallery-overlay {
  opacity: 1;
}

.sidebar-quick-contact .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.sidebar-quick-contact .btn-outline:hover {
  background: var(--white);
  color: #0f172a !important;
  border-color: var(--white);
}

.sidebar-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-services-list li {
  margin-bottom: 10px;
}

.sidebar-services-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
}

.sidebar-services-list a:hover,
.sidebar-services-list a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Related / Other Offers Section at Bottom of Single Service */
.other-services-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.other-services-header {
  text-align: center;
  margin-bottom: 48px;
}

.error-404-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.error-404-content p {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ═══════════════════════════════════════════════
   OFFER CATALOG PAGE STYLES (SZABLON & ARCHIWUM OFERTY)
   ═══════════════════════════════════════════════ */

.offer-catalog-section {
  padding: 80px 0 100px;
  background: #f8fafc;
}

.offer-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .offer-catalog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.offer-card-modern {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.offer-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  border-color: rgba(227, 6, 19, 0.3);
}

.offer-card-image-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0f172a;
}

.offer-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-card-modern:hover .offer-card-image-wrap img {
  transform: scale(1.08);
}

.offer-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
}

.offer-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.offer-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.offer-card-modern:hover .offer-card-title {
  color: var(--primary);
}

.offer-card-title a {
  color: inherit;
  text-decoration: none;
}

.offer-card-lead {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.offer-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 20px;
}

.offer-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
  font-weight: 500;
}

.offer-card-features li i {
  color: var(--primary);
  font-size: 12px;
}

.offer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.offer-card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.offer-card-modern:hover .offer-card-link-btn {
  gap: 12px;
}
