/**
 * Wallcano Tiles Ltd - Base Layout & Typography
 * Strictly matched to OnePack (casethemes.net) Architecture
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--body_bg-color);
  color: var(--body-color);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* OnePack Signature Background Architectural Grid Lines */
.pxl-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 var(--container-padding);
}

.pxl-grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.02) 100%);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--third-color);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.16;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
}

h4 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  position: relative;
  z-index: 2;
}

.section {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(80px, 9vw, 120px);
  position: relative;
  z-index: 1;
}

/* Section Colors & Textures */
.section-white {
  background-color: #FFFFFF;
}

.section-stone {
  background-color: var(--body_bg-stone);
}

.section-four {
  background-color: var(--four-color);
}

.section-dark {
  background-color: var(--dark-bg);
  color: #CBD5E1;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #FFFFFF;
}

/* Section Headers (OnePack Style) */
.section-header {
  margin-bottom: clamp(48px, 6vw, 70px);
  position: relative;
}

.section-header.text-center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-title {
  margin-bottom: 18px;
}

.section-desc {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--body-color);
  max-width: 680px;
  line-height: 1.7;
}

.section-dark .section-desc {
  color: #94A3B8;
}

/* Grid System */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Text Accents */
.text-gold {
  color: var(--primary-color);
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
  color: transparent;
}

.section-dark .text-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
}

/* Scroll Reveal Classes */
.reveal-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger-1 { transition-delay: 0.12s; }
.reveal-stagger-2 { transition-delay: 0.24s; }
.reveal-stagger-3 { transition-delay: 0.36s; }
.reveal-stagger-4 { transition-delay: 0.48s; }

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

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 40px; }
}
