/* ══════════════════════════════════════════════
   SIPJOLT v4 — Base Styles
   Reset, body, global elements, typography
   ══════════════════════════════════════════════ */

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--grey-500);
  background-color: var(--off-white);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  color: var(--ink);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--size-hero);
  line-height: 1.05;
}

h2 {
  font-size: var(--size-4xl);
}

h3 {
  font-size: var(--size-3xl);
}

h4 {
  font-size: var(--size-2xl);
}

p {
  line-height: var(--leading-relaxed);
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

/* ── SECTION DEFAULTS ── */
section {
  padding: var(--space-24) 0;
}

/* ── EYEBROW LABEL ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-medium);
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: var(--space-4);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--duration-base) var(--ease-out);
}

.btn--primary:hover::after {
  width: 100%;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--outline:hover {
  background-color: var(--ink);
  color: var(--white);
}

.btn--accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background-color: #2563EB;
  color: var(--white);
}

.btn--large {
  padding: 18px 40px;
  font-size: var(--size-base);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--text {
  background: none;
  padding: 0;
  color: var(--grey-500);
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--size-sm);
  position: relative;
}

.btn--text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--grey-500);
  transition: width var(--duration-fast) var(--ease-out);
}

.btn--text:hover::after {
  width: 100%;
}

.btn-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ── LINK STYLED AS ACCENT CTA ── */
.link-accent {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--duration-fast) var(--ease-out);
}

.link-accent:hover {
  gap: var(--space-3);
}

/* ── GRAIN TEXTURE OVERLAY ── */
.grain-overlay {
  position: relative;
}

.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  z-index: 1;
}

.grain-overlay > * {
  position: relative;
  z-index: 2;
}

/* ── FULL-BLEED HERO (shared across pages) ── */
.fullbleed-hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  padding-top: 0 !important;
  position: relative;
}

.fullbleed-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.40) 40%,
    rgba(0, 0, 0, 0.60) 100%
  );
  z-index: 1;
}

.fullbleed-hero > * {
  position: relative;
  z-index: 2;
}

/* Text color overrides for fullbleed heroes */
.fullbleed-hero .eyebrow {
  color: rgba(255, 255, 255, 0.7) !important;
}

.fullbleed-hero h1 {
  color: #fff !important;
}

.fullbleed-hero p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.fullbleed-hero .btn--primary {
  background-color: #fff;
  color: var(--ink);
}

.fullbleed-hero .btn--text {
  color: rgba(255, 255, 255, 0.8);
}

.fullbleed-hero .btn--text::after {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ── HORIZONTAL RULE ── */
.divider {
  border: none;
  height: 1px;
  background-color: var(--grey-200);
}

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

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Mobile first.
   ══════════════════════════════════════════════ */

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }

  section {
    padding: var(--space-32) 0;
  }

  h2 {
    font-size: var(--size-4xl);
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-12);
  }
}
