/* ================================
   Articx Theme – Base CSS
   ================================ */


:root {
  /* === CORE DARKS === */
  --color-primary: #1A1B1E;        /* główne tło */
  --color-primary-light: #26272B;  /* sekcje */
  --color-primary-dark: #111214;   /* header / footer */

  /* === WARM ACCENTS === */
  --color-accent: #CBBEAC;         /* warm stone */
  --color-accent-light: #E6DED3;   /* light stone */
  --color-accent-muted: #9E9384;   /* muted bronze */

  /* === BACKGROUNDS === */
  --bg-main: #16171A;
  --bg-section: #1E1F23;
  --bg-card: #24252A;
  --bg-overlay: rgba(0,0,0,0.55);

  /* === TEXT === */
  --text-main: #ECE9E4;            /* soft white */
  --text-muted: #B8B2A8;           /* captions */
  --text-light: #FFFFFF;
  --text-invert: #111214;

  /* === LINES / DIVIDERS === */
  --border-subtle: rgba(255,255,255,0.12);
  --border-accent: rgba(203,190,172,0.35);
}

/* BACKGROUNDS */
.bg-primary { background-color: var(--color-primary); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-primary-dark { background-color: var(--color-primary-dark); }

.bg-main { background-color: var(--bg-main); }
.bg-section { background-color: var(--bg-section); }
.bg-card { background-color: var(--bg-card); }
.bg-overlay { background-color: var(--bg-overlay); }

.bg-accent { background-color: var(--color-accent); }
.bg-accent-light { background-color: var(--color-accent-light); }

/* TEXT */
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-invert { color: var(--text-invert); }

.text-accent { color: var(--color-accent); }
.text-accent-muted { color: var(--color-accent-muted); }

/* BORDERS */
.border-subtle { border-color: var(--border-subtle); }
.border-accent { border-color: var(--border-accent); }


*,
*::before,
*::after {
  box-sizing: border-box;
}

.site-header {
  background-color: transparent;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}

body {
  margin: 0;
}

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

.wp-block-image img {
  height: auto;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.is-hidden {
  display: none !important;
}


/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 10px;
  gap: 24px;
}

@media (max-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Header */

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
}

/* Hero btn */

.hero-btn {
  position: relative;
  color: var(--text-light);
  background-color: #1a1b1e;
  border: 1px solid rgba(255,255,255,0.25);
  letter-spacing: 0.28em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.35s ease;
  overflow: hidden;

   clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%
  );
}

/* subtle pattern / noise */
.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.03) 0,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.35;
  pointer-events: none;
}

/* inner highlight */
.hero-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
}

/* hover – bardzo subtelny */
.hero-btn:hover {
  background-color: #202126;
  border-color: rgba(255,255,255,0.4);
}



/* Logo */
.site-header .custom-logo {
  max-height: 40px;
  width: auto;
}

/* Section intro img */

/* === INTRO IMAGES === */
.intro-image {
  width: 100%;
  height: 460px; /* jedna wysokość */
  object-fit: cover;
  opacity: 0.85;
  display: block;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%
  );
}

/* subtle frame */
.intro-image-wrapper {
  position: relative;
}

.intro-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%
  );
}


/* === SERVICES === */

.service-card {
  display: flex;
  flex-direction: column;
}

.service-image-wrapper {
  position: relative;
}

.service-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0 100%
  );
  opacity: 0.9;
}

/* subtle frame */
.service-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    0 100%
  );
}
