/* ============================================================
   Wooddo Jacek Domagała – Modern Responsive Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary:    #2B2B2B;   /* dark charcoal */
  --color-secondary:  #6B6B6B;   /* mid grey */
  --color-accent:     #B07740;   /* warm wood tone */
  --color-accent-dark:#8A5A28;
  --color-light:      #F6F5F3;   /* very light warm grey */
  --color-bg:         #FFFFFF;   /* white */
  --color-text:       #32373C;   /* Technistone charcoal */
  --color-text-muted: #71717A;
  --color-border:     #E4E2DE;
  --color-white:      #FFFFFF;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 10px rgba(0,0,0,.07);
  --shadow-lg: 0 5px 24px rgba(0,0,0,.13);

  --nav-height:  68px;
  --max-width:   1200px;
  --section-gap: 2.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.12;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem);      font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);       font-weight: 700; margin-bottom: .6rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem);   font-weight: 600; margin-bottom: .4rem; }
h4 { font-size: 1rem;                            font-weight: 600; margin-bottom: .35rem; }

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section     { padding: var(--section-gap) 0; }
.section-alt { background-color: var(--color-light); }
.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: .55rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  border: none;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover {
  background: #111111;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo .logo-main {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.nav-logo .logo-sub {
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 0; }
.nav-links li a {
  display: block;
  padding: .45rem 1rem;
  color: var(--color-light);
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #111111 100%);
  color: var(--color-white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(255,255,255,.02) 60px, rgba(255,255,255,.02) 61px
  );
}
.hero-content { position: relative; max-width: 660px; }
.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem .85rem;
  border-radius: 9999px;
  margin-bottom: .7rem;
}
.hero h1 { color: var(--color-white); margin-bottom: .7rem; }
.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.4rem;
  max-width: 520px;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #111111 100%);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-bottom: .3rem; }
.page-hero p  { color: rgba(255,255,255,.78); font-size: .95rem; margin: 0; }

/* ============================================================
   ABOUT SECTION (index)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: 1rem;
}
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: .9rem .75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-label {
  font-size: .72rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.about-text h2 { margin-bottom: .9rem; }
.about-text h3 { margin-top: 1rem; margin-bottom: .4rem; }

/* ============================================================
   FEATURES / WHY US (index)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; margin-bottom: .6rem; display: block; }
.feature-card h3 { margin-bottom: .4rem; font-size: 1rem; }
.feature-card p  { color: var(--color-text-muted); font-size: .87rem; }

/* ============================================================
   OFFER PAGE
   ============================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.offer-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-accent);
}
.offer-card h2 { margin-bottom: .75rem; font-size: 1.2rem; }
.offer-card ul { list-style: disc; padding-left: 1.1rem; }
.offer-card ul li { margin-bottom: .3rem; color: var(--color-text-muted); font-size: .9rem; }

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.service-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.service-item h4 { color: var(--color-accent); margin-bottom: .35rem; }
.service-item p  { color: var(--color-text-muted); font-size: .87rem; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */

/* Tab bar */
.gallery-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-tabs::-webkit-scrollbar { display: none; }

.gallery-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: .87rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.gallery-tab:hover { color: var(--color-primary); }
.gallery-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.tab-count {
  font-size: .7rem;
  font-weight: 700;
  background: var(--color-light);
  color: var(--color-text-muted);
  padding: .1rem .42rem;
  border-radius: 9999px;
  transition: background .2s, color .2s;
}
.gallery-tab.active .tab-count {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Tab panels */
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-panel-header {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1rem;
}
.gallery-panel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.gallery-panel-count {
  font-size: .8rem;
  color: var(--color-text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-border);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: .6rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  color: var(--color-white);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox-caption {
  color: rgba(255,255,255,.9);
  margin-top: .6rem;
  font-size: .93rem;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 1.6rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.contact-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; width: 2rem; text-align: center; }
.contact-detail h4 { color: var(--color-primary); margin-bottom: .2rem; }
.contact-detail p,
.contact-detail a { color: var(--color-text-muted); font-size: .9rem; }
.contact-detail a:hover { color: var(--color-accent); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}
.map-wrapper iframe { width: 100%; height: 350px; border: none; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.6);
  padding: 1.4rem 0 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
}
.footer-brand .logo-main {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
}
.footer-tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: .15rem;
}
.footer-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-contact a {
  color: rgba(255,255,255,.65);
  font-size: .84rem;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .65rem 0;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 1.5rem; }
.section-header h2 { margin-bottom: .35rem; }
.section-header p { color: var(--color-text-muted); max-width: 520px; margin: 0 auto; font-size: .93rem; }
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .35rem;
}

/* ============================================================
   PARTNERS STRIP
   ============================================================ */
.partners-strip {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: .9rem 0;
}
.partners-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.partners-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.partner-link {
  color: var(--color-secondary);
  font-weight: 600;
  border: 1px solid var(--color-border);
  padding: .28rem .85rem;
  border-radius: var(--radius);
  font-size: .84rem;
  transition: all .2s;
}
.partner-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--color-light);
  padding: .45rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .82rem;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-secondary); }
.breadcrumb span { margin: 0 .35rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-gap: 1.75rem; }

  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .4rem 0 .75rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: .65rem 1.25rem; border-radius: 0; font-size: .92rem; }

  .about-grid    { grid-template-columns: 1fr; }
  .offer-grid    { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .about-stats   { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }

  .hero      { padding: 2.5rem 0; }
  .page-hero { padding: 1.5rem 0; }
}

@media (max-width: 480px) {
  .services-list { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-cta      { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .gallery-tab   { font-size: .8rem; padding: .6rem .8rem; }
}
