/* IHS Enterprises Pty Ltd - Base Typography, Layout & Utilities */

/* All Headings: Archivo typography matching digitaltenx.qa */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: var(--font-heading);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-md);
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

/* Gradient text accents for electric mint */
.text-gradient, .text-mint {
  background: var(--gradient-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-silver {
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.heading-gradient {
  background: linear-gradient(180deg, #ffffff 15%, #b5c2bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Subheadings, Card Titles and Body Text = Crisp White */
h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.025em;
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.26;
  color: var(--text);
  letter-spacing: -0.02em;
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.32;
  color: var(--text);
  letter-spacing: -0.015em;
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

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

strong, b {
  color: var(--text);
  font-weight: 600;
}

/* Eyebrows (Mono-style in electric mint with subtle glowing pill) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.28);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
  width: fit-content;
  box-shadow: 0 0 20px rgba(0, 214, 143, 0.08);
  backdrop-filter: blur(8px);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
  flex-shrink: 0;
}

.eyebrow-plain {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

/* Section Containers & Backgrounds */
.section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: var(--space-2xl) 0;
  z-index: 1;
}

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

.section-hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: var(--space-2xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.container-wide {
  max-width: var(--max-width-wide);
}

.section-header {
  margin-bottom: var(--space-xl);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Ambient Animated Radial Glow Blobs - fixed viewport bounds */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(0, 214, 143, 0.45) 0%, rgba(0, 151, 106, 0.15) 50%, transparent 75%);
  will-change: transform, opacity;
  animation: floatGlow 18s ease-in-out infinite alternate;
  max-width: 100vw;
  max-height: 100vh;
}

.glow-blob-1 {
  width: 520px;
  height: 520px;
  top: 5%;
  left: -80px;
  animation-duration: 20s;
}

.glow-blob-2 {
  width: 580px;
  height: 580px;
  bottom: 8%;
  right: -80px;
  animation-duration: 24s;
  animation-delay: -7s;
}

.glow-blob-center {
  width: 650px;
  height: 650px;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.18; }
  50% { transform: translate(25px, -20px) scale(1.08); opacity: 0.28; }
  100% { transform: translate(-20px, 25px) scale(0.95); opacity: 0.2; }
}

@media (max-width: 768px) {
  .glow-blob {
    filter: blur(65px);
    opacity: 0.16;
  }
  .glow-blob-1 {
    width: 280px;
    height: 280px;
    left: -40px;
    top: 2%;
  }
  .glow-blob-2 {
    width: 300px;
    height: 300px;
    right: -40px;
    bottom: 4%;
  }
  .glow-blob-center {
    width: 320px;
    height: 320px;
  }
}

/* Subtle Technical Grid Overlay */
.bg-tech-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Section Hairline Divider */
.section-divider {
  height: 1px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 43, 42, 0.9) 20%, rgba(0, 214, 143, 0.35) 50%, rgba(35, 43, 42, 0.9) 80%, transparent 100%);
}

/* Authentic Japanese Technical Watermark */
.japanese-watermark {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(4rem, 9vw, 11rem);
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* Grid Layout Utilities */
.grid {
  display: grid;
  gap: 1.75rem;
}

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

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

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

@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 {
    padding: var(--space-xl) 0;
  }
  .section-hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: auto;
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}

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

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

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Text Utilities */
.text-emerald { color: var(--primary) !important; }
.text-white { color: var(--text) !important; }
.text-muted { color: var(--muted) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Focus States for Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
