/* ============================================
   URSUS IRON — Industrial craftsmanship
   ============================================ */

:root {
  --red: #8B1A1A;
  --red-dark: #6E1414;
  --bg: #111111;
  --bg-alt: #1C1C1C;
  --bg-card: #181818;
  --cream: #F0EDE6;
  --cream-dim: #B8B3A8;
  --black: #0D0D0D;
  --border: #2A2A2A;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  --max-width: 1240px;
  --gutter: 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>"),
    radial-gradient(ellipse at top, #1a1a1a 0%, #0d0d0d 70%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }

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

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--cream-dim);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.accent { color: var(--red); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 7rem 0; } }

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

.section-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Thin horizontal rule between sections */
.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  border: 0;
  margin: 0;
}
.rule-red {
  height: 2px;
  width: 60px;
  background: var(--red);
  border: 0;
  margin: 1.25rem 0 2rem;
}
.section-header.center .rule-red { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.brand img { width: 54px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}
.mobile-menu a {
  display: block;
  padding: 0.85rem var(--gutter);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--red);
  border-left-color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  background: transparent;
  color: var(--red);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--black);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,13,13,0.78), rgba(13,13,13,0.92)),
    linear-gradient(135deg, #2a1010 0%, #0d0d0d 50%, #1a0a0a 100%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/bear-watermark.svg");
  background-repeat: no-repeat;
  background-position: right -40px center;
  background-size: contain;
  opacity: 0.07;
  filter: invert(1);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}
.hero h1 .stamp {
  display: block;
  color: var(--red);
  font-style: italic;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--cream-dim);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Two-man badge (recurring) ---------- */
.two-man {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--red);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(139, 26, 26, 0.08);
}
.two-man::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  display: inline-block;
}

/* ---------- Who we are blurb ---------- */
.intro-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 880px) {
  .intro-block { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
}
.intro-block .pillar {
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.25rem 2rem;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.service-number {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.75rem;
}
.service h3 {
  margin-bottom: 0.75rem;
}
.service p {
  color: var(--cream-dim);
}

/* ---------- Portfolio grid ---------- */
.portfolio-group {
  margin-bottom: 4rem;
}
.portfolio-group:last-child { margin-bottom: 0; }
.portfolio-heading {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.portfolio-heading h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.portfolio-heading .count {
  font-family: var(--font-body);
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.portfolio-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}
.tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  transition: transform 0.45s ease;
  filter: grayscale(15%) contrast(1.05);
}
/* Placeholder tile patterns until real photos are added */
.tile-img.placeholder {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.6) 100%),
    repeating-linear-gradient(45deg, #1a1a1a 0px, #1a1a1a 12px, #141414 12px, #141414 24px);
}
.tile-img.placeholder.var-2 {
  background-image:
    linear-gradient(225deg, rgba(139,26,26,0.18) 0%, rgba(0,0,0,0.7) 100%),
    repeating-linear-gradient(-45deg, #1c1c1c 0px, #1c1c1c 14px, #151515 14px, #151515 28px);
}
.tile-img.placeholder.var-3 {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.75) 70%),
    repeating-linear-gradient(0deg, #1a1a1a 0px, #1a1a1a 16px, #141414 16px, #141414 32px);
}
.tile:hover .tile-img { transform: scale(1.06); }
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tile:hover .tile-overlay { opacity: 1; }
.tile-overlay .tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.tile-overlay h4 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Always-visible label corner (so grid reads without hover too) */
.tile-corner {
  position: absolute;
  top: 0; left: 0;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  z-index: 1;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 980px) {
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 5rem; }
}
.about-image {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.85) 100%),
    repeating-linear-gradient(35deg, #1c1c1c 0px, #1c1c1c 18px, #161616 18px, #161616 36px);
  border: 1px solid var(--border);
  position: relative;
}
.about-image::after {
  content: "TWO PEOPLE. ONE STANDARD.";
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.05em;
  border-top: 2px solid var(--red);
  padding-top: 1rem;
}

.pullquote {
  border-left: 3px solid var(--red);
  padding: 1.5rem 0 1.5rem 1.75rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--cream);
}
.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* Values list */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }

.value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 1.5rem;
}
.value h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.value p {
  color: var(--cream-dim);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-info p { color: var(--cream-dim); }
.contact-info .info-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.contact-info .label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.contact-info .value-big {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  display: block;
  margin-bottom: 1.25rem;
}
.contact-info .value-big a:hover { color: var(--red); }

/* Form */
form { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--bg-card);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA strip ---------- */
.cta-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(139,26,26,0.08), transparent 60%),
    var(--bg-alt);
  padding: 4rem 0;
}
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .cta-strip-inner { grid-template-columns: 1fr auto; gap: 3rem; }
}
.cta-strip h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-strip p { color: var(--cream-dim); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-brand img { width: 76px; margin-bottom: 1rem; }
.footer-brand p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-links a,
.footer-contact a {
  display: block;
  color: var(--cream);
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--red); }
.footer-contact .label-small {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 0.75rem;
}

.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  color: var(--cream);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.socials a:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(139,26,26,0.08);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/bear-watermark.svg");
  background-repeat: no-repeat;
  background-position: right -60px bottom -100px;
  background-size: 420px;
  opacity: 0.05;
  filter: invert(1);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--cream-dim);
  max-width: 620px;
  font-size: 1.1rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
