@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Zmienne kolorystyczne globalne */
:root {
  --primary: #0e3c46;
  --primary-dark: #08252c;
  --accent: #FF8E78;
  --accent-dark: #FF8E78;
  --bg-neutral: #f9f9f7;
  --white: #ffffff;
  --gray-light: #f1f1f0;
  --gray-text: #717171;
}

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

li{
  margin-left: 15px;

}
p{
  margin: 5px 0;
}

h1,h2,h3{
  font-family: 'Cinzel', serif;
  font-weight: 500;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f7;
  color: #1f1f1f;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Top Utility Bar (Globalne menu/pasek narzędzi) */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 11px;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(14, 60, 70, 0.2);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-left .divider {
  color: var(--accent);
}

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

.top-bar-right a:hover {
  color: var(--accent);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 15px;
}

.search-container input {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 11px;
  outline: none;
  width: 80px;
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Header (Globalny) */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    transition: transform 0.6s ease;
    top: 7px;
    position: relative;
}

.logo-wrapper:hover .logo-icon svg {
  transform: rotate(45deg);
}

.logo-text {
  border-left: 1px solid #dcdcdc;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Cinzel', serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--gray-text);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}

.nav-item a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item a:hover {
  color: var(--accent);
}

.dropdown {
  position: relative;
}

.dropdown .child-pages-links {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  opacity: 0;
  background-color: white;
  padding: 10px;
  border-radius: 0 0 10px 10px;
  width: 250px;
}

.dropdown .child-pages-links li {
  list-style: none;
}

.dropdown .child-pages-links a {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: inherit
}


/* CTA Button */
.cta-button {
  background-color: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 24px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-dark);
  color: var(--white);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin-bottom: 5px;
  transition: 0.3s;
}

/* ==========================================================================
           Strefa.home  - Wszystkie style poniżej są izolowane identyfikatorem .home 
           ========================================================================== */

/* Hero Section */
.home .hero {
  position: relative;
  background-color: var(--primary-dark);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/page_back/hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
}

.home .hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Diagonal Cut Box */
.home .diagonal-box {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 58%;
}

.home .tagline {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

.home .hero-title {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 25px;
  font-weight: 600;
}

.home .hero-desc {
  font-size: 15px;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.home .diagonal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-around;
}

.home .diagonal-footer a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home .diagonal-footer a:hover {
  color: var(--accent);
}

/* Hero Right Side list */
.home .hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  width: 42%;
}

.home .hero-right h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--accent);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.home .hero-list-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 4px;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

.home .hero-list-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.home .hero-list-icon {
  color: var(--accent);
  font-size: 20px;
}

.home .hero-list-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.home .hero-list-content p {
  font-size: 12px;
  color: #9ca3af;
}

/* Featured Highlight Section */
.home .featured-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 40px;
}

.home .featured-banner {
  background-color: var(--white);
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  min-height: 400px;
}

.home .featured-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
}

.home .featured-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--primary);
  margin: 15px 0;
  line-height: 1.3;
}

.home .featured-text p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.7;
}

.home .featured-meta {
  margin-top: 30px;
}

.home .featured-date {
  font-size: 12px;
  color: #a3a3a3;
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.home .featured-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home .featured-link:hover {
  color: var(--accent);
}

.home .featured-image-wrapper {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  position: relative;
  overflow: hidden;
  width: 50%;
}

.home .featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Elements Grid (5 Items) */
.home .elements-section {
  background-color: var(--white);
  border-top: 1px solid #f1f1f0;
  border-bottom: 1px solid #f1f1f0;
  padding: 80px 0;
}

.home .elements-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.home .section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.home .section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  color: var(--primary);
  margin: 10px 0;
}

.home .section-header p {
  color: var(--gray-text);
  font-size: 14px;
}

.home .elements-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.home .element-card {
  background-color: var(--bg-neutral);
  border-top: 4px solid var(--primary);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  width: calc(20% - 16px);
}

.home .element-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.home .element-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
  transition: color 0.3s;
}

.home .element-card:hover .element-icon {
  color: var(--accent);
}

.home .element-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.home .element-card p {
  font-size: 11px;
  color: var(--gray-text);
  line-height: 1.5;
}

.home .element-more {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home .element-card:hover .element-more {
  color: var(--accent);
}

/* Case Studies Section */
.home .cases-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 40px;
}

.home .cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.home .cases-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: var(--primary);
}

.home .cases-grid {
  display: flex;
  gap: 30px;
}

.home .case-card {
  position: relative;
  background-color: var(--primary-dark);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 300px;
}

.home .case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.home .case-card:hover .case-image {
  transform: scale(1.05);
}

.home .case-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary-dark) 0%, rgba(8, 37, 44, 0.3) 60%, transparent 100%);
}

.home .case-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 15px;
  width: 100%;
}

.home .case-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.home .case-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 8px;
  transition: color 0.3s;
  line-height: 25px;
}

.home .case-card:hover .case-title {
  color: var(--accent);
}

.home .case-desc {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.6;
  max-width: 420px;
  display: none;
}

/* Stats Section */
.home .stats-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
}

.home .stats-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: center;
}

.home .stat-item {
  width: 25%;
}

.home .stat-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.home .stat-item p {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d1d5db;
}

/* Footer */
footer {
  background-color: #05191d;
  color: #a3a3a3;
  padding: 80px 40px 40px 40px;
  border-top: 1px solid rgba(14, 60, 70, 0.4);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info {
  width: 30%;
}

.footer-col {
  width: 20%;
}

.newsletter {
  width: 30%;
}

.footer-info p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 15px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
}

.footer-logo-subtitle {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  font-size: 12px;
}

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

.newsletter h4 {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 20px;
}

.newsletter-form input {
  background-color: rgba(14, 60, 70, 0.2);
  border: 1px solid rgba(14, 60, 70, 0.6);
  padding: 12px;
  color: var(--white);
  font-size: 12px;
  border-radius: 2px 0 0 2px;
  outline: none;
  width: 100%;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-btn {
  background-color: var(--accent);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background-color: var(--accent-dark);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #a3a3a3;
  font-size: 16px;
}

.social-icon:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #525252;
}

/* PAGES GENERIC  */

.category .category_header,
.page-template-default .page_header {
  padding: 40px 0;
}

.page-template-default  #content{
  padding-bottom: 40px;
}

/* PAGES GENERIC  */

/* BLOG AND CAT PAGES */

.category  #content .container a > div,
.page-id-10 #content .container a > div{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}
.category  #content .container a > div img,
.page-id-10 #content .container a > div img{
 width: 200px;
 margin-right: 20px;
}
.category  #content .container a > div .case-content,
.page-id-10 #content .container a > div .case-content{
 flex: 1;
}

/* BLOG AND CAT PAGES */

/* CONTACT  */

.page-id-9 .contact_page .container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.page-id-9 .contact_page .container > div{
  flex: 1 1 45%;
}
.page-id-9 .contact_page .container > div.left strong{
  display: block;
  margin: 5px 0;
}

.page-id-9 .contact_page .container > div.right input,
.page-id-9 .contact_page .container > div.right textarea{
  width: 70%;
  padding: 5px;
  border:1px solid lightgray;
}

.page-id-9 .contact_page .container > div.right form > p{
  margin: 5px 0;
}
.page-id-9 .contact_page .container > div.right input[type='submit']{
  padding: 5px;
  cursor: pointer;
  width: 100px;
}

/* CONTACT  */

/* ABOUT  */


.page-id-8 .about_page .container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.page-id-8 .about_page .container > div{
  flex: 1 1 45%;
}
.page-id-8 .about_page .container > div.left strong{
  display: block;
  margin: 5px 0;
}

.page-id-8 .about_page .container > div.right input,
.page-id-8 .about_page .container > div.right textarea{
  width: 70%;
  padding: 5px;
  border:1px solid lightgray;
}

.page-id-8 .about_page .container > div.right form > p{
  margin: 5px 0;
}
.page-id-8 .about_page .container > div.right input[type='submit']{
  padding: 5px;
  cursor: pointer;
  width: 100px;
}
.page-id-8 .about_page .container > div.right img{
  width: 100%;
}

/* ABOUT  */

/* SINGLE POST  */
.single #content{
  padding: 50px 0;
}

.single #content .post_title h1{
  font-size: 35px;
  font-weight: 500;
}


.single .main_image{
  margin:20px 0;
}
.single .main_image img{
  width: 100%;
  height: 500px;
  object-fit: cover;
}
/* SINGLE POST  */

/* Responsive Breakpoint: 794px */
@media (max-width: 794px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f1f1f0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item>a {
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f7;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    display: none;
    flex-direction: column;
    padding: 15px 30px;
  }

  .mega-col-left,
  .mega-col-right {
    width: 100%;
  }

  .mega-col-right {
    border-left: none;
    padding-left: 0;
    margin-top: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .cta-button {
    display: none;
  }

  .home .hero-container {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }

  .home .diagonal-box {
    clip-path: none;
    padding: 40px;
    width: 100%;
  }

  .home .hero-right {
    width: 100%;
  }

  .home .hero-title {
    font-size: 32px;
  }

  .home .featured-banner {
    flex-direction: column;
  }

  .home .featured-image-wrapper {
    clip-path: none;
    height: 250px;
    width: 100%;
    order: -1;
  }

  .home .featured-content {
    padding: 40px 20px;
    width: 100%;
  }

  .home .elements-grid {
    flex-direction: column;
  }

  .home .element-card {
    width: 100%;
  }

  .home .cases-grid {
    flex-direction: column;
  }

  .home .case-card {
    width: 100%;
  }

  .home .stats-container {
    flex-direction: column;
    gap: 30px;
  }

  .home .stat-item {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-info,
  .footer-col,
  .newsletter {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }


  .page-id-8 .about_page .container > div{
      flex: 1 1 100%;
  }

  .top-bar {
    flex-wrap: wrap;
  } 
  .top-bar > div {
    justify-content: space-between;
    flex:  1  1 100%;
  }

   #content{
    padding: 10px!important;
   }

   .category #content .container a > div > *, 
   .page-id-10 #content .container a > div > * {
    flex:1 1 100%;
   }

}