/* ============================================================
   FLOWELL OIL & GAS — Base Styles
   Reset, Google Fonts import, body defaults, type scale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Images ── */
img, svg {
  display: block;
  max-width: 100%;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Buttons ── */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Focus ── */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Typography ── */

/* Display headings — Bodoni Moda */
h1, h2, h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

p {
  font-weight: 300;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  max-width: 62ch;
}

/* Small caps label — used for section tags like "About" / "Services" */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout containers ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

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

/* ── Brand amber motif rule ── */
/* Used above every section heading — this is the identity motif */
.motif-rule {
  display: block;
  width: var(--motif-width);
  height: var(--motif-height);
  background: var(--accent);
  margin-bottom: var(--space-6);
}

/* ── Section spacing ── */
.section {
  padding-block: var(--space-section);
}

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

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

/* ── Horizontal divider ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 0;
}

/* ── Selection ── */
::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ── Utility ── */
.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;
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.font-display { font-family: var(--font-display); }

/* ── Engineering grid — hero background ── */
/* Purpose: references engineering drawing paper (the visual language of spec sheets
   and technical drawings used in oilfield fastener documentation). Dose: hero section only. */
.eng-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 70%, transparent 100%);
}
