/* 
  Filergon - Modern Responsive Stylesheet 
  Woodworking & Carpentry Services
*/

:root {
  --primary-color: #5888a4;
  --primary-hover: #72a2c0;
  --dark-color: #0e212b;
  --darker-color: #071218;
  --light-color: #f4f4f4;
  --text-muted: #8fa0a8;
  --text-light: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.3s;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--dark-color);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-speed) ease;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Hero / Showcase Section */
.showcase {
  width: 100%;
  height: 90vh;
  position: relative;
  background: url('uploads/2022/03/slide-1-filergon_1.webp') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

/* Dark overlay gradient to ensure text readability and depth */
.showcase::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle, rgba(14,33,43,0.3) 0%, rgba(14,33,43,0.85) 100%);
  box-shadow: inset 0 0 100px rgba(14, 33, 43, 0.9);
}

.showcase-top {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-top .logo {
  width: 280px;
  max-width: 80%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.showcase-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px);
}

.showcase-content h1 {
  font-size: 3.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.7);
  font-weight: 800;
}

.showcase-content p {
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 650px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
  letter-spacing: 1px;
}

/* Tabs Section */
.tabs {
  background-color: var(--darker-color);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tabs .container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: stretch;
  grid-gap: 1.5rem;
}

.tab-item {
  padding: 1.25rem 0.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
  border-bottom: 3px solid transparent;
}

.tab-item:hover {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.02);
}

.tab-item.tab-border {
  color: var(--text-light);
  border-bottom: 3px solid var(--primary-color);
  background-color: rgba(88, 136, 164, 0.05);
}

.tab-item .tab_image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: grayscale(1) brightness(0.8);
  transition: filter var(--transition-speed);
}

.tab-item.tab-border .tab_image,
.tab-item:hover .tab_image {
  filter: none;
}

.tab-item p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  word-break: break-word;
}

/* Tab Content Area */
.tab-content {
  padding: 3rem 0;
  background-color: var(--dark-color);
}

.tab-content-item {
  display: none;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.tab-content-item.show {
  display: block;
}

/* Modern Masonry Gallery Grid */
.gallery-grid {
  columns: 3 300px;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  background-color: var(--darker-color);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(88, 136, 164, 0.2);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 18, 24, 0.95);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 5px;
  z-index: 110;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition-speed), color var(--transition-speed);
  z-index: 110;
}

.lightbox-nav:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Footer Section */
.footer {
  background-color: var(--darker-color);
  color: var(--text-muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  transition: color var(--transition-speed);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-info svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .tabs .container {
    grid-template-columns: repeat(4, 1fr);
  }
  

  
  .showcase-content h1 {
    font-size: 2.8rem;
  }
  
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .showcase {
    height: 75vh;
  }
  
  .showcase-content h1 {
    font-size: 2.2rem;
  }
  
  .showcase-content p {
    font-size: 1rem;
  }
  
  .tabs {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .tabs .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    padding: 10px 5px;
  }
  .tab-item {
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
  }
  .tab-item.tab-border {
    border-bottom: 2px solid var(--primary-color) !important;
  }
  .tab-item .tab_image {
    width: 25px;
    height: 25px;
    margin-bottom: 4px;
  }
  .tab-item p {
    font-size: 0.55rem;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
  }
  
  .gallery-grid {
    columns: 2 200px;
  }
}

@media (max-width: 480px) {
  .showcase-top .logo {
    width: 200px;
  }
  
  .showcase-content h1 {
    font-size: 1.8rem;
  }
  

  
  .gallery-grid {
    columns: 1;
  }
  
  .footer-cols {
    grid-template-columns: 1fr;
  }
}


/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: -100px; /* Initially hidden off-screen */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 550px;
  background-color: rgba(14, 33, 43, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  z-index: 120;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  bottom: 30px;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cookie-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-speed);
}

.cookie-btn:hover {
  background-color: var(--primary-hover);
}

@media (max-width: 480px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}
